1
1
mirror of https://github.com/wader/fq.git synced 2024-11-29 23:27:12 +03:00

postgres: allow all flovours to decode btree index

This commit is contained in:
Pavel Safonov 2022-10-24 09:47:27 +03:00
parent 5ff6273505
commit 9f61e63702

View File

@ -29,15 +29,14 @@ func init() {
func decodePgBTree(d *decode.D, in any) any {
d.Endian = decode.LittleEndian
pgIn, ok := in.(format.PostgresIn)
_, ok := in.(format.PostgresIn)
if !ok {
d.Fatalf("DecodeInArg must be PostgresIn!\n")
}
switch pgIn.Flavour {
case PG_FLAVOUR_POSTGRES14:
return postgres14.DecodePgBTree(d)
}
return nil
//switch pgIn.Flavour {
//case PG_FLAVOUR_POSTGRES14:
// return postgres14.DecodePgBTree(d)
//}
return postgres14.DecodePgBTree(d)
}