diff options
author | Greg Sabino Mullane | 2011-10-06 19:04:01 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2011-10-06 19:04:01 +0000 |
commit | 98f74f2f8ee4e06a937ab0443aca1ab63885990c (patch) | |
tree | 29c33a9bb1e215441cd8b910e29ad7291cfaec9a /check_postgres.pl | |
parent | 674fefa997d4ef8dfe1b064034fdf3d5b6961d45 (diff) |
Use the full path when getting sequence information for same_schema.
Thanks to Cindy Wise for the bug report.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index ccf62a072..a0a4f6589 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -730,7 +730,8 @@ WHERE t.typtype NOT IN ('b','c')}, sequence => { SQL => q{ SELECT c.*, nspname||'.'||relname AS name, quote_ident(usename) AS owner, - quote_ident(relname) AS safename, quote_ident(nspname) AS schema + (quote_ident(nspname)||'.'||quote_ident(relname)) AS safename, +quote_ident(nspname) AS schema FROM pg_class c JOIN pg_user u ON (u.usesysid = c.relowner) JOIN pg_namespace n ON (n.oid = c.relnamespace) |