Don't show system catalogs in the schemas property list unless show system objects is enabled. Fixes #3842

This commit is contained in:
Akshay Joshi 2019-01-10 11:41:09 +05:30 committed by Dave Page
parent 868622912e
commit 01b87d4834
6 changed files with 11 additions and 15 deletions

View File

@ -14,4 +14,5 @@ Features
Bug fixes
*********
| `Bug #3842 <https://redmine.postgresql.org/issues/3842>`_ - Don't show system catalogs in the schemas property list unless show system objects is enabled.
| `Bug #3861 <https://redmine.postgresql.org/issues/3861>`_ - Fix help for the backup/restore dialogues.

View File

@ -29,9 +29,8 @@ WHERE
{% if scid %}
nsp.oid={{scid}}::oid AND
{% else %}
{% if show_sysobj %}
nspname NOT LIKE E'pg\\_temp\\_%' AND
nspname NOT LIKE E'pg\\_toast\\_temp\\_%' AND
{% if not show_sysobj %}
nspname NOT LIKE E'pg\\_%' AND
{% endif %}
{% endif %}
NOT (

View File

@ -46,9 +46,8 @@ WHERE
{% if scid %}
nsp.oid={{scid}}::oid AND
{% else %}
{% if show_sysobj %}
nspname NOT LIKE E'pg\\_temp\\_%' AND
nspname NOT LIKE E'pg\\_toast\\_temp\\_%' AND
{% if not show_sysobj %}
nspname NOT LIKE E'pg\\_%' AND
{% endif %}
{% endif %}
NOT (

View File

@ -40,9 +40,8 @@ WHERE
{% if scid %}
nsp.oid={{scid}}::oid AND
{% else %}
{% if show_sysobj %}
nspname NOT LIKE E'pg\\_temp\\_%' AND
nspname NOT LIKE E'pg\\_toast\\_temp\\_%' AND
{% if not show_sysobj %}
nspname NOT LIKE E'pg\\_%' AND
{% endif %}
{% endif %}
NOT (

View File

@ -39,9 +39,8 @@ WHERE
{% if scid %}
nsp.oid={{scid}}::oid AND
{% else %}
{% if show_sysobj %}
nspname NOT LIKE E'pg\\_temp\\_%' AND
nspname NOT LIKE E'pg\\_toast\\_temp\\_%' AND
{% if not show_sysobj %}
nspname NOT LIKE E'pg\\_%' AND
{% endif %}
{% endif %}
nsp.nspparent = 0 AND

View File

@ -46,9 +46,8 @@ WHERE
{% if scid %}
nsp.oid={{scid}}::oid AND
{% else %}
{% if show_sysobj %}
nspname NOT LIKE E'pg\\_temp\\_%' AND
nspname NOT LIKE E'pg\\_toast\\_temp\\_%' AND
{% if not show_sysobj %}
nspname NOT LIKE E'pg\\_%' AND
{% endif %}
{% endif %}
nsp.nspparent = 0 AND