Commit 7b48f1b4 authored by Tom Lane's avatar Tom Lane

Do pre-release housekeeping on catalog data.

Run renumber_oids.pl to move high-numbered OIDs down, as per pre-beta
tasks specified by RELEASE_CHANGES.  For reference, the command was
./renumber_oids.pl --first-mapped-oid=8000 --target-oid=5032

Also run reformat_dat_file.pl while I'm here.

Renumbering recently-added types changed some results in the opr_sanity
test.  To make those a bit easier to eyeball-verify, change the queries
to show regtype not just bare type OIDs.  (I think we didn't have
regtype when these queries were written.)
parent 2793bbe7
...@@ -53,6 +53,6 @@ ...@@ -53,6 +53,6 @@
*/ */
/* yyyymmddN */ /* yyyymmddN */
#define CATALOG_VERSION_NO 202004241 #define CATALOG_VERSION_NO 202005121
#endif #endif
...@@ -1028,8 +1028,9 @@ ...@@ -1028,8 +1028,9 @@
amopstrategy => '1', amopopr => '=(xid,xid)', amopmethod => 'hash' }, amopstrategy => '1', amopopr => '=(xid,xid)', amopmethod => 'hash' },
# xid8_ops # xid8_ops
{ amopfamily => 'hash/xid8_ops', amoplefttype => 'xid8', amoprighttype => 'xid8', { amopfamily => 'hash/xid8_ops', amoplefttype => 'xid8',
amopstrategy => '1', amopopr => '=(xid8,xid8)', amopmethod => 'hash' }, amoprighttype => 'xid8', amopstrategy => '1', amopopr => '=(xid8,xid8)',
amopmethod => 'hash' },
# cid_ops # cid_ops
{ amopfamily => 'hash/cid_ops', amoplefttype => 'cid', amoprighttype => 'cid', { amopfamily => 'hash/cid_ops', amoplefttype => 'cid', amoprighttype => 'cid',
......
...@@ -193,28 +193,28 @@ ...@@ -193,28 +193,28 @@
oprname => '<>', oprleft => 'xid', oprright => 'int4', oprresult => 'bool', oprname => '<>', oprleft => 'xid', oprright => 'int4', oprresult => 'bool',
oprnegate => '=(xid,int4)', oprcode => 'xidneqint4', oprrest => 'neqsel', oprnegate => '=(xid,int4)', oprcode => 'xidneqint4', oprrest => 'neqsel',
oprjoin => 'neqjoinsel' }, oprjoin => 'neqjoinsel' },
{ oid => '9418', descr => 'equal', { oid => '5068', descr => 'equal',
oprname => '=', oprcanmerge => 't', oprcanhash => 't', oprleft => 'xid8', oprname => '=', oprcanmerge => 't', oprcanhash => 't', oprleft => 'xid8',
oprright => 'xid8', oprresult => 'bool', oprcom => '=(xid8,xid8)', oprright => 'xid8', oprresult => 'bool', oprcom => '=(xid8,xid8)',
oprnegate => '<>(xid8,xid8)', oprcode => 'xid8eq', oprrest => 'eqsel', oprnegate => '<>(xid8,xid8)', oprcode => 'xid8eq', oprrest => 'eqsel',
oprjoin => 'eqjoinsel' }, oprjoin => 'eqjoinsel' },
{ oid => '9422', descr => 'not equal', { oid => '5072', descr => 'not equal',
oprname => '<>', oprleft => 'xid8', oprright => 'xid8', oprname => '<>', oprleft => 'xid8', oprright => 'xid8', oprresult => 'bool',
oprresult => 'bool', oprcom => '<>(xid8,xid8)', oprnegate => '=(xid8,xid8)', oprcom => '<>(xid8,xid8)', oprnegate => '=(xid8,xid8)', oprcode => 'xid8ne',
oprcode => 'xid8ne', oprrest => 'neqsel', oprjoin => 'neqjoinsel' }, oprrest => 'neqsel', oprjoin => 'neqjoinsel' },
{ oid => '9432', descr => 'less than', { oid => '5073', descr => 'less than',
oprname => '<', oprleft => 'xid8', oprright => 'xid8', oprresult => 'bool', oprname => '<', oprleft => 'xid8', oprright => 'xid8', oprresult => 'bool',
oprcom => '>(xid8,xid8)', oprnegate => '>=(xid8,xid8)', oprcode => 'xid8lt', oprcom => '>(xid8,xid8)', oprnegate => '>=(xid8,xid8)', oprcode => 'xid8lt',
oprrest => 'scalarltsel', oprjoin => 'scalarltjoinsel' }, oprrest => 'scalarltsel', oprjoin => 'scalarltjoinsel' },
{ oid => '9433', descr => 'greater than', { oid => '5074', descr => 'greater than',
oprname => '>', oprleft => 'xid8', oprright => 'xid8', oprresult => 'bool', oprname => '>', oprleft => 'xid8', oprright => 'xid8', oprresult => 'bool',
oprcom => '<(xid8,xid8)', oprnegate => '<=(xid8,xid8)', oprcode => 'xid8gt', oprcom => '<(xid8,xid8)', oprnegate => '<=(xid8,xid8)', oprcode => 'xid8gt',
oprrest => 'scalargtsel', oprjoin => 'scalargtjoinsel' }, oprrest => 'scalargtsel', oprjoin => 'scalargtjoinsel' },
{ oid => '9434', descr => 'less than or equal', { oid => '5075', descr => 'less than or equal',
oprname => '<=', oprleft => 'xid8', oprright => 'xid8', oprresult => 'bool', oprname => '<=', oprleft => 'xid8', oprright => 'xid8', oprresult => 'bool',
oprcom => '>=(xid8,xid8)', oprnegate => '>(xid8,xid8)', oprcode => 'xid8le', oprcom => '>=(xid8,xid8)', oprnegate => '>(xid8,xid8)', oprcode => 'xid8le',
oprrest => 'scalarlesel', oprjoin => 'scalarlejoinsel' }, oprrest => 'scalarlesel', oprjoin => 'scalarlejoinsel' },
{ oid => '9435', descr => 'greater than or equal', { oid => '5076', descr => 'greater than or equal',
oprname => '>=', oprleft => 'xid8', oprright => 'xid8', oprresult => 'bool', oprname => '>=', oprleft => 'xid8', oprright => 'xid8', oprresult => 'bool',
oprcom => '<=(xid8,xid8)', oprnegate => '<(xid8,xid8)', oprcode => 'xid8ge', oprcom => '<=(xid8,xid8)', oprnegate => '<(xid8,xid8)', oprcode => 'xid8ge',
oprrest => 'scalargesel', oprjoin => 'scalargejoinsel' }, oprrest => 'scalargesel', oprjoin => 'scalargejoinsel' },
......
...@@ -110,9 +110,9 @@ ...@@ -110,9 +110,9 @@
opfmethod => 'btree', opfname => 'tid_ops' }, opfmethod => 'btree', opfname => 'tid_ops' },
{ oid => '2225', { oid => '2225',
opfmethod => 'hash', opfname => 'xid_ops' }, opfmethod => 'hash', opfname => 'xid_ops' },
{ oid => '8164', { oid => '5032',
opfmethod => 'hash', opfname => 'xid8_ops' }, opfmethod => 'hash', opfname => 'xid8_ops' },
{ oid => '9322', { oid => '5067',
opfmethod => 'btree', opfname => 'xid8_ops' }, opfmethod => 'btree', opfname => 'xid8_ops' },
{ oid => '2226', { oid => '2226',
opfmethod => 'hash', opfname => 'cid_ops' }, opfmethod => 'hash', opfname => 'cid_ops' },
......
This diff is collapsed.
...@@ -177,7 +177,7 @@ ...@@ -177,7 +177,7 @@
typtype => 'p', typcategory => 'P', typinput => 'pg_ddl_command_in', typtype => 'p', typcategory => 'P', typinput => 'pg_ddl_command_in',
typoutput => 'pg_ddl_command_out', typreceive => 'pg_ddl_command_recv', typoutput => 'pg_ddl_command_out', typreceive => 'pg_ddl_command_recv',
typsend => 'pg_ddl_command_send', typalign => 'ALIGNOF_POINTER' }, typsend => 'pg_ddl_command_send', typalign => 'ALIGNOF_POINTER' },
{ oid => '9419', array_type_oid => '271', descr => 'full transaction id', { oid => '5069', array_type_oid => '271', descr => 'full transaction id',
typname => 'xid8', typlen => '8', typbyval => 'FLOAT8PASSBYVAL', typname => 'xid8', typlen => '8', typbyval => 'FLOAT8PASSBYVAL',
typcategory => 'U', typinput => 'xid8in', typoutput => 'xid8out', typcategory => 'U', typinput => 'xid8in', typoutput => 'xid8out',
typreceive => 'xid8recv', typsend => 'xid8send', typalign => 'd' }, typreceive => 'xid8recv', typsend => 'xid8send', typalign => 'd' },
...@@ -460,11 +460,11 @@ ...@@ -460,11 +460,11 @@
typcategory => 'U', typinput => 'txid_snapshot_in', typcategory => 'U', typinput => 'txid_snapshot_in',
typoutput => 'txid_snapshot_out', typreceive => 'txid_snapshot_recv', typoutput => 'txid_snapshot_out', typreceive => 'txid_snapshot_recv',
typsend => 'txid_snapshot_send', typalign => 'd', typstorage => 'x' }, typsend => 'txid_snapshot_send', typalign => 'd', typstorage => 'x' },
{ oid => '8355', array_type_oid => '8356', descr => 'snapshot', { oid => '5038', array_type_oid => '5039', descr => 'snapshot',
typname => 'pg_snapshot', typlen => '-1', typbyval => 'f', typname => 'pg_snapshot', typlen => '-1', typbyval => 'f', typcategory => 'U',
typcategory => 'U', typinput => 'pg_snapshot_in', typinput => 'pg_snapshot_in', typoutput => 'pg_snapshot_out',
typoutput => 'pg_snapshot_out', typreceive => 'pg_snapshot_recv', typreceive => 'pg_snapshot_recv', typsend => 'pg_snapshot_send',
typsend => 'pg_snapshot_send', typalign => 'd', typstorage => 'x' }, typalign => 'd', typstorage => 'x' },
# range types # range types
{ oid => '3904', array_type_oid => '3905', descr => 'range of integers', { oid => '3904', array_type_oid => '3905', descr => 'range of integers',
...@@ -604,26 +604,26 @@ ...@@ -604,26 +604,26 @@
typname => 'anyrange', typlen => '-1', typbyval => 'f', typtype => 'p', typname => 'anyrange', typlen => '-1', typbyval => 'f', typtype => 'p',
typcategory => 'P', typinput => 'anyrange_in', typoutput => 'anyrange_out', typcategory => 'P', typinput => 'anyrange_in', typoutput => 'anyrange_out',
typreceive => '-', typsend => '-', typalign => 'd', typstorage => 'x' }, typreceive => '-', typsend => '-', typalign => 'd', typstorage => 'x' },
{ oid => '9550', { oid => '5077',
descr => 'pseudo-type representing a polymorphic common type', descr => 'pseudo-type representing a polymorphic common type',
typname => 'anycompatible', typlen => '4', typbyval => 't', typtype => 'p', typname => 'anycompatible', typlen => '4', typbyval => 't', typtype => 'p',
typcategory => 'P', typinput => 'anycompatible_in', typcategory => 'P', typinput => 'anycompatible_in',
typoutput => 'anycompatible_out', typreceive => '-', typsend => '-', typoutput => 'anycompatible_out', typreceive => '-', typsend => '-',
typalign => 'i' }, typalign => 'i' },
{ oid => '9551', { oid => '5078',
descr => 'pseudo-type representing an array of polymorphic common type elements', descr => 'pseudo-type representing an array of polymorphic common type elements',
typname => 'anycompatiblearray', typlen => '-1', typbyval => 'f', typname => 'anycompatiblearray', typlen => '-1', typbyval => 'f',
typtype => 'p', typcategory => 'P', typinput => 'anycompatiblearray_in', typtype => 'p', typcategory => 'P', typinput => 'anycompatiblearray_in',
typoutput => 'anycompatiblearray_out', typoutput => 'anycompatiblearray_out',
typreceive => 'anycompatiblearray_recv', typsend => 'anycompatiblearray_send', typreceive => 'anycompatiblearray_recv', typsend => 'anycompatiblearray_send',
typalign => 'd', typstorage => 'x' }, typalign => 'd', typstorage => 'x' },
{ oid => '9552', { oid => '5079',
descr => 'pseudo-type representing a polymorphic common type that is not an array', descr => 'pseudo-type representing a polymorphic common type that is not an array',
typname => 'anycompatiblenonarray', typlen => '4', typbyval => 't', typname => 'anycompatiblenonarray', typlen => '4', typbyval => 't',
typtype => 'p', typcategory => 'P', typinput => 'anycompatiblenonarray_in', typtype => 'p', typcategory => 'P', typinput => 'anycompatiblenonarray_in',
typoutput => 'anycompatiblenonarray_out', typreceive => '-', typsend => '-', typoutput => 'anycompatiblenonarray_out', typreceive => '-', typsend => '-',
typalign => 'i' }, typalign => 'i' },
{ oid => '9553', { oid => '5080',
descr => 'pseudo-type representing a range over a polymorphic common type', descr => 'pseudo-type representing a range over a polymorphic common type',
typname => 'anycompatiblerange', typlen => '-1', typbyval => 'f', typname => 'anycompatiblerange', typlen => '-1', typbyval => 'f',
typtype => 'p', typcategory => 'P', typinput => 'anycompatiblerange_in', typtype => 'p', typcategory => 'P', typinput => 'anycompatiblerange_in',
......
...@@ -182,7 +182,7 @@ WHERE p1.oid < p2.oid AND ...@@ -182,7 +182,7 @@ WHERE p1.oid < p2.oid AND
-- or when new polymorphic built-in functions are added! -- or when new polymorphic built-in functions are added!
-- Note: ignore aggregate functions here, since they all point to the same -- Note: ignore aggregate functions here, since they all point to the same
-- dummy built-in function. Likewise, ignore range constructor functions. -- dummy built-in function. Likewise, ignore range constructor functions.
SELECT DISTINCT p1.prorettype, p2.prorettype SELECT DISTINCT p1.prorettype::regtype, p2.prorettype::regtype
FROM pg_proc AS p1, pg_proc AS p2 FROM pg_proc AS p1, pg_proc AS p2
WHERE p1.oid != p2.oid AND WHERE p1.oid != p2.oid AND
p1.prosrc = p2.prosrc AND p1.prosrc = p2.prosrc AND
...@@ -192,15 +192,15 @@ WHERE p1.oid != p2.oid AND ...@@ -192,15 +192,15 @@ WHERE p1.oid != p2.oid AND
p2.prosrc NOT LIKE E'range\\_constructor_' AND p2.prosrc NOT LIKE E'range\\_constructor_' AND
(p1.prorettype < p2.prorettype) (p1.prorettype < p2.prorettype)
ORDER BY 1, 2; ORDER BY 1, 2;
prorettype | prorettype prorettype | prorettype
------------+------------ -----------------------------+--------------------------
20 | 9419 bigint | xid8
25 | 1043 text | character varying
1114 | 1184 timestamp without time zone | timestamp with time zone
2970 | 8355 txid_snapshot | pg_snapshot
(4 rows) (4 rows)
SELECT DISTINCT p1.proargtypes[0], p2.proargtypes[0] SELECT DISTINCT p1.proargtypes[0]::regtype, p2.proargtypes[0]::regtype
FROM pg_proc AS p1, pg_proc AS p2 FROM pg_proc AS p1, pg_proc AS p2
WHERE p1.oid != p2.oid AND WHERE p1.oid != p2.oid AND
p1.prosrc = p2.prosrc AND p1.prosrc = p2.prosrc AND
...@@ -210,17 +210,17 @@ WHERE p1.oid != p2.oid AND ...@@ -210,17 +210,17 @@ WHERE p1.oid != p2.oid AND
p2.prosrc NOT LIKE E'range\\_constructor_' AND p2.prosrc NOT LIKE E'range\\_constructor_' AND
(p1.proargtypes[0] < p2.proargtypes[0]) (p1.proargtypes[0] < p2.proargtypes[0])
ORDER BY 1, 2; ORDER BY 1, 2;
proargtypes | proargtypes proargtypes | proargtypes
-------------+------------- -----------------------------+--------------------------
20 | 9419 bigint | xid8
25 | 1042 text | character
25 | 1043 text | character varying
1114 | 1184 timestamp without time zone | timestamp with time zone
1560 | 1562 bit | bit varying
2970 | 8355 txid_snapshot | pg_snapshot
(6 rows) (6 rows)
SELECT DISTINCT p1.proargtypes[1], p2.proargtypes[1] SELECT DISTINCT p1.proargtypes[1]::regtype, p2.proargtypes[1]::regtype
FROM pg_proc AS p1, pg_proc AS p2 FROM pg_proc AS p1, pg_proc AS p2
WHERE p1.oid != p2.oid AND WHERE p1.oid != p2.oid AND
p1.prosrc = p2.prosrc AND p1.prosrc = p2.prosrc AND
...@@ -230,15 +230,15 @@ WHERE p1.oid != p2.oid AND ...@@ -230,15 +230,15 @@ WHERE p1.oid != p2.oid AND
p2.prosrc NOT LIKE E'range\\_constructor_' AND p2.prosrc NOT LIKE E'range\\_constructor_' AND
(p1.proargtypes[1] < p2.proargtypes[1]) (p1.proargtypes[1] < p2.proargtypes[1])
ORDER BY 1, 2; ORDER BY 1, 2;
proargtypes | proargtypes proargtypes | proargtypes
-------------+------------- -----------------------------+--------------------------
23 | 28 integer | xid
1114 | 1184 timestamp without time zone | timestamp with time zone
1560 | 1562 bit | bit varying
2970 | 8355 txid_snapshot | pg_snapshot
(4 rows) (4 rows)
SELECT DISTINCT p1.proargtypes[2], p2.proargtypes[2] SELECT DISTINCT p1.proargtypes[2]::regtype, p2.proargtypes[2]::regtype
FROM pg_proc AS p1, pg_proc AS p2 FROM pg_proc AS p1, pg_proc AS p2
WHERE p1.oid != p2.oid AND WHERE p1.oid != p2.oid AND
p1.prosrc = p2.prosrc AND p1.prosrc = p2.prosrc AND
...@@ -246,12 +246,12 @@ WHERE p1.oid != p2.oid AND ...@@ -246,12 +246,12 @@ WHERE p1.oid != p2.oid AND
p1.prokind != 'a' AND p2.prokind != 'a' AND p1.prokind != 'a' AND p2.prokind != 'a' AND
(p1.proargtypes[2] < p2.proargtypes[2]) (p1.proargtypes[2] < p2.proargtypes[2])
ORDER BY 1, 2; ORDER BY 1, 2;
proargtypes | proargtypes proargtypes | proargtypes
-------------+------------- -----------------------------+--------------------------
1114 | 1184 timestamp without time zone | timestamp with time zone
(1 row) (1 row)
SELECT DISTINCT p1.proargtypes[3], p2.proargtypes[3] SELECT DISTINCT p1.proargtypes[3]::regtype, p2.proargtypes[3]::regtype
FROM pg_proc AS p1, pg_proc AS p2 FROM pg_proc AS p1, pg_proc AS p2
WHERE p1.oid != p2.oid AND WHERE p1.oid != p2.oid AND
p1.prosrc = p2.prosrc AND p1.prosrc = p2.prosrc AND
...@@ -259,12 +259,12 @@ WHERE p1.oid != p2.oid AND ...@@ -259,12 +259,12 @@ WHERE p1.oid != p2.oid AND
p1.prokind != 'a' AND p2.prokind != 'a' AND p1.prokind != 'a' AND p2.prokind != 'a' AND
(p1.proargtypes[3] < p2.proargtypes[3]) (p1.proargtypes[3] < p2.proargtypes[3])
ORDER BY 1, 2; ORDER BY 1, 2;
proargtypes | proargtypes proargtypes | proargtypes
-------------+------------- -----------------------------+--------------------------
1114 | 1184 timestamp without time zone | timestamp with time zone
(1 row) (1 row)
SELECT DISTINCT p1.proargtypes[4], p2.proargtypes[4] SELECT DISTINCT p1.proargtypes[4]::regtype, p2.proargtypes[4]::regtype
FROM pg_proc AS p1, pg_proc AS p2 FROM pg_proc AS p1, pg_proc AS p2
WHERE p1.oid != p2.oid AND WHERE p1.oid != p2.oid AND
p1.prosrc = p2.prosrc AND p1.prosrc = p2.prosrc AND
...@@ -276,7 +276,7 @@ ORDER BY 1, 2; ...@@ -276,7 +276,7 @@ ORDER BY 1, 2;
-------------+------------- -------------+-------------
(0 rows) (0 rows)
SELECT DISTINCT p1.proargtypes[5], p2.proargtypes[5] SELECT DISTINCT p1.proargtypes[5]::regtype, p2.proargtypes[5]::regtype
FROM pg_proc AS p1, pg_proc AS p2 FROM pg_proc AS p1, pg_proc AS p2
WHERE p1.oid != p2.oid AND WHERE p1.oid != p2.oid AND
p1.prosrc = p2.prosrc AND p1.prosrc = p2.prosrc AND
...@@ -288,7 +288,7 @@ ORDER BY 1, 2; ...@@ -288,7 +288,7 @@ ORDER BY 1, 2;
-------------+------------- -------------+-------------
(0 rows) (0 rows)
SELECT DISTINCT p1.proargtypes[6], p2.proargtypes[6] SELECT DISTINCT p1.proargtypes[6]::regtype, p2.proargtypes[6]::regtype
FROM pg_proc AS p1, pg_proc AS p2 FROM pg_proc AS p1, pg_proc AS p2
WHERE p1.oid != p2.oid AND WHERE p1.oid != p2.oid AND
p1.prosrc = p2.prosrc AND p1.prosrc = p2.prosrc AND
...@@ -300,7 +300,7 @@ ORDER BY 1, 2; ...@@ -300,7 +300,7 @@ ORDER BY 1, 2;
-------------+------------- -------------+-------------
(0 rows) (0 rows)
SELECT DISTINCT p1.proargtypes[7], p2.proargtypes[7] SELECT DISTINCT p1.proargtypes[7]::regtype, p2.proargtypes[7]::regtype
FROM pg_proc AS p1, pg_proc AS p2 FROM pg_proc AS p1, pg_proc AS p2
WHERE p1.oid != p2.oid AND WHERE p1.oid != p2.oid AND
p1.prosrc = p2.prosrc AND p1.prosrc = p2.prosrc AND
...@@ -384,10 +384,10 @@ WHERE p1.prorettype IN ...@@ -384,10 +384,10 @@ WHERE p1.prorettype IN
ORDER BY 2; ORDER BY 2;
oid | proname oid | proname
------+-------------------------- ------+--------------------------
9559 | anycompatible_in 5086 | anycompatible_in
9561 | anycompatiblearray_in 5088 | anycompatiblearray_in
9563 | anycompatiblearray_recv 5090 | anycompatiblearray_recv
9565 | anycompatiblenonarray_in 5092 | anycompatiblenonarray_in
(4 rows) (4 rows)
SELECT p1.oid, p1.proname SELECT p1.oid, p1.proname
...@@ -398,7 +398,7 @@ WHERE p1.prorettype = 'anycompatiblerange'::regtype ...@@ -398,7 +398,7 @@ WHERE p1.prorettype = 'anycompatiblerange'::regtype
ORDER BY 2; ORDER BY 2;
oid | proname oid | proname
------+----------------------- ------+-----------------------
9567 | anycompatiblerange_in 5094 | anycompatiblerange_in
(1 row) (1 row)
-- Look for functions that accept cstring and are neither datatype input -- Look for functions that accept cstring and are neither datatype input
......
...@@ -166,7 +166,7 @@ WHERE p1.oid < p2.oid AND ...@@ -166,7 +166,7 @@ WHERE p1.oid < p2.oid AND
-- Note: ignore aggregate functions here, since they all point to the same -- Note: ignore aggregate functions here, since they all point to the same
-- dummy built-in function. Likewise, ignore range constructor functions. -- dummy built-in function. Likewise, ignore range constructor functions.
SELECT DISTINCT p1.prorettype, p2.prorettype SELECT DISTINCT p1.prorettype::regtype, p2.prorettype::regtype
FROM pg_proc AS p1, pg_proc AS p2 FROM pg_proc AS p1, pg_proc AS p2
WHERE p1.oid != p2.oid AND WHERE p1.oid != p2.oid AND
p1.prosrc = p2.prosrc AND p1.prosrc = p2.prosrc AND
...@@ -177,7 +177,7 @@ WHERE p1.oid != p2.oid AND ...@@ -177,7 +177,7 @@ WHERE p1.oid != p2.oid AND
(p1.prorettype < p2.prorettype) (p1.prorettype < p2.prorettype)
ORDER BY 1, 2; ORDER BY 1, 2;
SELECT DISTINCT p1.proargtypes[0], p2.proargtypes[0] SELECT DISTINCT p1.proargtypes[0]::regtype, p2.proargtypes[0]::regtype
FROM pg_proc AS p1, pg_proc AS p2 FROM pg_proc AS p1, pg_proc AS p2
WHERE p1.oid != p2.oid AND WHERE p1.oid != p2.oid AND
p1.prosrc = p2.prosrc AND p1.prosrc = p2.prosrc AND
...@@ -188,7 +188,7 @@ WHERE p1.oid != p2.oid AND ...@@ -188,7 +188,7 @@ WHERE p1.oid != p2.oid AND
(p1.proargtypes[0] < p2.proargtypes[0]) (p1.proargtypes[0] < p2.proargtypes[0])
ORDER BY 1, 2; ORDER BY 1, 2;
SELECT DISTINCT p1.proargtypes[1], p2.proargtypes[1] SELECT DISTINCT p1.proargtypes[1]::regtype, p2.proargtypes[1]::regtype
FROM pg_proc AS p1, pg_proc AS p2 FROM pg_proc AS p1, pg_proc AS p2
WHERE p1.oid != p2.oid AND WHERE p1.oid != p2.oid AND
p1.prosrc = p2.prosrc AND p1.prosrc = p2.prosrc AND
...@@ -199,7 +199,7 @@ WHERE p1.oid != p2.oid AND ...@@ -199,7 +199,7 @@ WHERE p1.oid != p2.oid AND
(p1.proargtypes[1] < p2.proargtypes[1]) (p1.proargtypes[1] < p2.proargtypes[1])
ORDER BY 1, 2; ORDER BY 1, 2;
SELECT DISTINCT p1.proargtypes[2], p2.proargtypes[2] SELECT DISTINCT p1.proargtypes[2]::regtype, p2.proargtypes[2]::regtype
FROM pg_proc AS p1, pg_proc AS p2 FROM pg_proc AS p1, pg_proc AS p2
WHERE p1.oid != p2.oid AND WHERE p1.oid != p2.oid AND
p1.prosrc = p2.prosrc AND p1.prosrc = p2.prosrc AND
...@@ -208,7 +208,7 @@ WHERE p1.oid != p2.oid AND ...@@ -208,7 +208,7 @@ WHERE p1.oid != p2.oid AND
(p1.proargtypes[2] < p2.proargtypes[2]) (p1.proargtypes[2] < p2.proargtypes[2])
ORDER BY 1, 2; ORDER BY 1, 2;
SELECT DISTINCT p1.proargtypes[3], p2.proargtypes[3] SELECT DISTINCT p1.proargtypes[3]::regtype, p2.proargtypes[3]::regtype
FROM pg_proc AS p1, pg_proc AS p2 FROM pg_proc AS p1, pg_proc AS p2
WHERE p1.oid != p2.oid AND WHERE p1.oid != p2.oid AND
p1.prosrc = p2.prosrc AND p1.prosrc = p2.prosrc AND
...@@ -217,7 +217,7 @@ WHERE p1.oid != p2.oid AND ...@@ -217,7 +217,7 @@ WHERE p1.oid != p2.oid AND
(p1.proargtypes[3] < p2.proargtypes[3]) (p1.proargtypes[3] < p2.proargtypes[3])
ORDER BY 1, 2; ORDER BY 1, 2;
SELECT DISTINCT p1.proargtypes[4], p2.proargtypes[4] SELECT DISTINCT p1.proargtypes[4]::regtype, p2.proargtypes[4]::regtype
FROM pg_proc AS p1, pg_proc AS p2 FROM pg_proc AS p1, pg_proc AS p2
WHERE p1.oid != p2.oid AND WHERE p1.oid != p2.oid AND
p1.prosrc = p2.prosrc AND p1.prosrc = p2.prosrc AND
...@@ -226,7 +226,7 @@ WHERE p1.oid != p2.oid AND ...@@ -226,7 +226,7 @@ WHERE p1.oid != p2.oid AND
(p1.proargtypes[4] < p2.proargtypes[4]) (p1.proargtypes[4] < p2.proargtypes[4])
ORDER BY 1, 2; ORDER BY 1, 2;
SELECT DISTINCT p1.proargtypes[5], p2.proargtypes[5] SELECT DISTINCT p1.proargtypes[5]::regtype, p2.proargtypes[5]::regtype
FROM pg_proc AS p1, pg_proc AS p2 FROM pg_proc AS p1, pg_proc AS p2
WHERE p1.oid != p2.oid AND WHERE p1.oid != p2.oid AND
p1.prosrc = p2.prosrc AND p1.prosrc = p2.prosrc AND
...@@ -235,7 +235,7 @@ WHERE p1.oid != p2.oid AND ...@@ -235,7 +235,7 @@ WHERE p1.oid != p2.oid AND
(p1.proargtypes[5] < p2.proargtypes[5]) (p1.proargtypes[5] < p2.proargtypes[5])
ORDER BY 1, 2; ORDER BY 1, 2;
SELECT DISTINCT p1.proargtypes[6], p2.proargtypes[6] SELECT DISTINCT p1.proargtypes[6]::regtype, p2.proargtypes[6]::regtype
FROM pg_proc AS p1, pg_proc AS p2 FROM pg_proc AS p1, pg_proc AS p2
WHERE p1.oid != p2.oid AND WHERE p1.oid != p2.oid AND
p1.prosrc = p2.prosrc AND p1.prosrc = p2.prosrc AND
...@@ -244,7 +244,7 @@ WHERE p1.oid != p2.oid AND ...@@ -244,7 +244,7 @@ WHERE p1.oid != p2.oid AND
(p1.proargtypes[6] < p2.proargtypes[6]) (p1.proargtypes[6] < p2.proargtypes[6])
ORDER BY 1, 2; ORDER BY 1, 2;
SELECT DISTINCT p1.proargtypes[7], p2.proargtypes[7] SELECT DISTINCT p1.proargtypes[7]::regtype, p2.proargtypes[7]::regtype
FROM pg_proc AS p1, pg_proc AS p2 FROM pg_proc AS p1, pg_proc AS p2
WHERE p1.oid != p2.oid AND WHERE p1.oid != p2.oid AND
p1.prosrc = p2.prosrc AND p1.prosrc = p2.prosrc AND
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment