|
|
|
@ -18,7 +18,8 @@ CREATE TEXT SEARCH PARSER addr_ts_prs |
|
|
|
|
(start = prsd_start, gettoken = prsd_nexttoken, end = prsd_end, lextypes = prsd_lextype); |
|
|
|
|
CREATE TABLE addr_nsp.gentable ( |
|
|
|
|
a serial primary key CONSTRAINT a_chk CHECK (a > 0), |
|
|
|
|
b text DEFAULT 'hello'); |
|
|
|
|
b text DEFAULT 'hello' |
|
|
|
|
); |
|
|
|
|
CREATE TABLE addr_nsp.parttable ( |
|
|
|
|
a int PRIMARY KEY |
|
|
|
|
) PARTITION BY RANGE (a); |
|
|
|
@ -443,13 +444,14 @@ WITH objects (type, name, args) AS (VALUES |
|
|
|
|
SELECT (pg_identify_object(addr1.classid, addr1.objid, addr1.objsubid)).*, |
|
|
|
|
-- test roundtrip through pg_identify_object_as_address |
|
|
|
|
ROW(pg_identify_object(addr1.classid, addr1.objid, addr1.objsubid)) = |
|
|
|
|
ROW(pg_identify_object(addr2.classid, addr2.objid, addr2.objsubid)) |
|
|
|
|
FROM objects, pg_get_object_address(type, name, args) addr1, |
|
|
|
|
pg_identify_object_as_address(classid, objid, objsubid) ioa(typ,nms,args), |
|
|
|
|
pg_get_object_address(typ, nms, ioa.args) as addr2 |
|
|
|
|
ORDER BY addr1.classid, addr1.objid, addr1.objsubid; |
|
|
|
|
type | schema | name | identity | ?column? |
|
|
|
|
---------------------------+------------+-------------------+----------------------------------------------------------------------+---------- |
|
|
|
|
ROW(pg_identify_object(addr2.classid, addr2.objid, addr2.objsubid)) AS roundtrip |
|
|
|
|
FROM objects, |
|
|
|
|
pg_get_object_address(type, name, args) AS addr1, |
|
|
|
|
pg_identify_object_as_address(classid, objid, objsubid) AS ioa (typ, nms, args), |
|
|
|
|
pg_get_object_address(typ, nms, ioa.args) AS addr2 |
|
|
|
|
ORDER BY addr1.classid, addr1.objid, addr1.objsubid; |
|
|
|
|
type | schema | name | identity | roundtrip |
|
|
|
|
---------------------------+------------+-------------------+----------------------------------------------------------------------+----------- |
|
|
|
|
default acl | | | for role regress_addr_user in schema public on tables | t |
|
|
|
|
default acl | | | for role regress_addr_user on tables | t |
|
|
|
|
type | pg_catalog | _int4 | integer[] | t |
|
|
|
|