1
1
mirror of https://github.com/wader/fq.git synced 2024-12-02 12:45:53 +03:00
fq/format/postgres/pg_wal_page.go

32 lines
673 B
Go

package postgres
// TO DO
// remove
//import (
// "github.com/wader/fq/format"
// "github.com/wader/fq/pkg/decode"
// "github.com/wader/fq/pkg/interp"
// _ "github.com/wader/fq/pkg/scalar"
//)
//
//func init() {
// interp.RegisterFormat(decode.Format{
// Name: format.PGWALPAGE,
// Description: "PostgreSQL write-ahead page",
// DecodeFn: walpageDecode,
// })
//}
//
////const XLOG_BLCKSZ = 8192
//
//func walpageDecode(d *decode.D, in interface{}) interface{} {
//
// d.Endian = decode.LittleEndian
//
// pageHeaders := d.FieldArrayValue("XLogPageHeaders")
// _ = pageHeaders.FieldStruct("XLogPageHeaderData", decodeXLogPageHeaderData)
//
// return nil
//}