File: oid.sql

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 (8 lines) | stat: -rw-r--r-- 282 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
-- test oid columns (removed in PostgreSQL 12)

SELECT setting::int >= 120000 AS is_pg_12 FROM pg_settings WHERE name = 'server_version_num';

SELECT * FROM pg_dirtyread('foo') AS t(oid oid, bar bigint, baz text);

-- error cases
SELECT * FROM pg_dirtyread('foo') as t(oid bigint);