mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Complete tab completion for DROP STATISTICS
Tab-completing DROP STATISTICS would only work if you started writing the schema name containing the statistics object, because the visibility clause was missing. To add it, we need to add SQL-callable support for testing visibility of a statistics object, like all other object types already have. Discussion: https://postgr.es/m/22676.1494557205@sss.pgh.pa.us
This commit is contained in:
@ -16680,6 +16680,12 @@ SELECT relname FROM pg_class WHERE pg_table_is_visible(oid);
|
||||
<entry><type>boolean</type></entry>
|
||||
<entry>is operator family visible in search path</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal><function>pg_statistic_ext_is_visible(<parameter>stat_oid</parameter>)</function></literal>
|
||||
</entry>
|
||||
<entry><type>boolean</type></entry>
|
||||
<entry>is statistics object visible in search path</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><literal><function>pg_table_is_visible(<parameter>table_oid</parameter>)</function></literal>
|
||||
</entry>
|
||||
@ -16738,6 +16744,9 @@ SELECT relname FROM pg_class WHERE pg_table_is_visible(oid);
|
||||
<indexterm>
|
||||
<primary>pg_opfamily_is_visible</primary>
|
||||
</indexterm>
|
||||
<indexterm>
|
||||
<primary>pg_statistic_ext_is_visible</primary>
|
||||
</indexterm>
|
||||
<indexterm>
|
||||
<primary>pg_table_is_visible</primary>
|
||||
</indexterm>
|
||||
|
Reference in New Issue
Block a user