Fix quoting of ACL item in table for upgrade binary compatibility checks
authorMichael Paquier <michael@paquier.xyz>
Thu, 18 Nov 2021 03:52:49 +0000 (12:52 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 18 Nov 2021 03:52:49 +0000 (12:52 +0900)
Per buildfarm member prion, that runs the regression tests under a role
name that uses a hyphen.  Issue introduced by 835bcba.

Discussion: https://postgr.es/m/YZW4MvzCZ+hQ34vw@paquier.xyz
Backpatch-through: 12

src/test/regress/expected/type_sanity.out
src/test/regress/sql/type_sanity.sql

index 3ffd9d0d712ff69dfe210c8e2acd4c5f39a131e7..257b6cac125a441f6d04a7f4fb347e130a2d8828 100644 (file)
@@ -713,7 +713,7 @@ CREATE TABLE tab_core_types AS SELECT
   'abc'::refcursor,
   '1 2'::int2vector,
   '1 2'::oidvector,
-  format('%s=UC/%s', USER, USER)::aclitem,
+  format('%I=UC/%I', USER, USER)::aclitem AS aclitem,
   'a fat cat sat on a mat and ate a fat rat'::tsvector,
   'fat & rat'::tsquery,
   'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid,
index f92773b75ee82fedfa8705cb8baf9d9f107b89f0..8281076423e61d2a4418151cbc4ee9bce6e4c57f 100644 (file)
@@ -535,7 +535,7 @@ CREATE TABLE tab_core_types AS SELECT
   'abc'::refcursor,
   '1 2'::int2vector,
   '1 2'::oidvector,
-  format('%s=UC/%s', USER, USER)::aclitem,
+  format('%I=UC/%I', USER, USER)::aclitem AS aclitem,
   'a fat cat sat on a mat and ate a fat rat'::tsvector,
   'fat & rat'::tsquery,
   'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid,