You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
postgres/src/include/catalog/duplicate_oids

29 lines
436 B

#!/usr/bin/perl
use lib '../../backend/catalog/';
use Catalog;
use strict;
use warnings;
my @input_files = (glob("pg_*.h"), qw(indexing.h toasting.h));
my $oids = Catalog::FindAllOidsFromHeaders(@input_files);
my %oidcounts;
foreach my $oid (@{$oids})
{
$oidcounts{$oid}++;
}
my $found = 0;
foreach my $oid (sort { $a <=> $b } keys %oidcounts)
{
next unless $oidcounts{$oid} > 1;
$found = 1;
print "$oid\n";
}
exit $found;