We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90b97ee commit 5b9b184Copy full SHA for 5b9b184
check_postgres.pl
@@ -7581,6 +7581,12 @@ sub schema_item_exists {
7581
7582
if (! exists $itemhash->{$db2}{$item_class}{$name}) {
7583
7584
+ ## Skip if the schema does not match (and we have at least one schema, indicating lack of 'noschema')
7585
+ if ($item_class ne 'schema') {
7586
+ my $it = $itemhash->{$db1}{$item_class}{$name};
7587
+ next if exists $it->{schema} and keys %{ $itemhash->{$db1}{schema} } and ! exists $itemhash->{$db2}{schema}{ $it->{schema} };
7588
+ }
7589
+
7590
my $one = '1';
7591
7592
## Special exception for columns: do not add if the table is non-existent
0 commit comments