Fix an issue where refreshing a package results in the change in the object completely. Fixes #5066.

This commit is contained in:
Akshay Joshi
2020-01-17 12:01:37 +05:30
parent e2bfac9e42
commit af56b92af4
3 changed files with 13 additions and 4 deletions

View File

@@ -3,4 +3,7 @@ SELECT
FROM
pg_namespace nsp
WHERE nspparent = {{scid}}::oid
ORDER BY nspname;
{% if pkgid %}
AND nsp.oid = {{pkgid}}::oid
{% endif %}
ORDER BY nspname;

View File

@@ -1,5 +1,10 @@
SELECT nsp.oid, nspname AS name
FROM pg_namespace nsp
SELECT
nsp.oid, nspname AS name
FROM
pg_namespace nsp
WHERE nspparent = {{scid}}::oid
{% if pkgid %}
AND nsp.oid = {{pkgid}}::oid
{% endif %}
AND nspobjecttype = 0
ORDER BY nspname;
ORDER BY nspname;