mirror of
https://github.com/postgres/postgres.git
synced 2025-10-29 22:49:41 +03:00
Include partitioned indexes to system view pg_indexes
pg_tables already includes partitioned tables, so for consistency pg_indexes should show partitioned indexes. Author: Suraj Kharage Reviewed-by: Amit Langote, Michael Paquier Discussion: https://postgr.es/m/CAF1DzPVrYo4XNTEnc=PqVp6aLJc7LFYpYR4rX=_5pV=wJ2KdZg@mail.gmail.com
This commit is contained in:
@@ -162,7 +162,7 @@ CREATE VIEW pg_indexes AS
|
||||
JOIN pg_class I ON (I.oid = X.indexrelid)
|
||||
LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)
|
||||
LEFT JOIN pg_tablespace T ON (T.oid = I.reltablespace)
|
||||
WHERE C.relkind IN ('r', 'm') AND I.relkind = 'i';
|
||||
WHERE C.relkind IN ('r', 'm', 'p') AND I.relkind IN ('i', 'I');
|
||||
|
||||
CREATE OR REPLACE VIEW pg_sequences AS
|
||||
SELECT
|
||||
|
||||
Reference in New Issue
Block a user