Skip to content

Commit c4b63f4

Browse files
usamoiJinweiOS
authored andcommitted
fix: skip partitioned tables in pg_vector_index_stat (tensorchord#478)
Signed-off-by: usamoi <usamoi@outlook.com> Signed-off-by: jinweios <jinwei.peng@beingthink.com>
1 parent edc7544 commit c4b63f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sql/finalize.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ CREATE VIEW pg_vector_index_stat AS
775775
pg_index X ON C.oid = X.indrelid JOIN
776776
pg_class I ON I.oid = X.indexrelid JOIN
777777
pg_am A ON A.oid = I.relam
778-
WHERE A.amname = 'vectors';
778+
WHERE A.amname = 'vectors' AND C.relkind = 'r';
779779

780780
GRANT SELECT ON TABLE pg_vector_index_stat TO PUBLIC;
781781

0 commit comments

Comments
 (0)