dblink_get_pkey
Synopsis
dblink_get_pkey(text relname) returns setof dblink_pkey_resultsDescription
Arguments
Return Value
CREATE TYPE dblink_pkey_results AS (position int, colname text);Examples
CREATE TABLE foobar (
f1 int,
f2 int,
f3 int,
PRIMARY KEY (f1, f2, f3)
);
CREATE TABLE
SELECT * FROM dblink_get_pkey('foobar');
position | colname
----------+---------
1 | f1
2 | f2
3 | f3
(3 rows)Last updated
Was this helpful?