2022-07-12 11:18:16 +03:00
|
|
|
package postgres
|
|
|
|
|
2022-09-02 16:14:24 +03:00
|
|
|
// TO DO
|
|
|
|
// remove
|
|
|
|
|
2022-07-28 12:32:35 +03:00
|
|
|
//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
|
|
|
|
//}
|