regoids.sql 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --!syntax_pg
  2. -- Tests for OID types
  3. -- See https://www.postgresql.org/docs/14/datatype-oid.html
  4. select oid, oid::regclass from pg_catalog.pg_class
  5. where oid::regclass in ('pg_user', 'pg_group');
  6. select oid, oid::regconfig from pg_catalog.pg_ts_config
  7. where oid::regconfig in ('english', 'russian');
  8. select oid, oid::regdictionary from pg_catalog.pg_ts_dict
  9. where oid::regdictionary in ('irish_stem', 'italian_stem');
  10. select oid, oid::regnamespace from pg_catalog.pg_namespace
  11. where oid::regnamespace in ('public', 'information_schema');
  12. /*
  13. TODO: uncomment after YQL-18711
  14. select oid, oid::regoperator from pg_catalog.pg_operator
  15. where oid::regoperator in ('=(integer,integer)', '+(float4,float8)');
  16. */
  17. /*
  18. TODO: uncomment after YQL-18712
  19. select oid, oid::regproc from pg_catalog.pg_proc
  20. where oid::regproc in ('int4in', 'int4out');
  21. */
  22. /*
  23. TODO: uncomment after YQL-18711
  24. select oid, oid::regprocedure from pg_catalog.pg_proc
  25. where oid::regprocedure in ('namein(cstring)', 'nameout(name)');
  26. */
  27. select oid, oid::regrole from pg_catalog.pg_authid
  28. where oid::regrole in ('pg_read_all_data', 'pg_write_all_data');
  29. /*
  30. TODO: uncomment after YQL-18713
  31. select oid, oid::regtype from pg_catalog.pg_type
  32. where oid::regtype in ('boolean', 'char');
  33. */