File: oid.out

package info (click to toggle)
pg-dirtyread 2.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 244 kB
  • sloc: sql: 471; ansic: 383; makefile: 17; sh: 1
file content (14 lines) | stat: -rw-r--r-- 507 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- test oid columns (removed in PostgreSQL 12)
SELECT setting::int >= 120000 AS is_pg_12 FROM pg_settings WHERE name = 'server_version_num';
 is_pg_12 
----------
 t
(1 row)

SELECT * FROM pg_dirtyread('foo') AS t(oid oid, bar bigint, baz text);
ERROR:  Error converting tuple descriptors!
DETAIL:  Attribute "oid" does not exist in type foo.
-- error cases
SELECT * FROM pg_dirtyread('foo') as t(oid bigint);
ERROR:  Error converting tuple descriptors!
DETAIL:  Attribute "oid" does not exist in type foo.