Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Fix quoting of ACL item in table for upgrade binary compatibility checks
authorMichael Paquier <michael@paquier.xyz>
Thu, 18 Nov 2021 03:53:02 +0000 (12:53 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 18 Nov 2021 03:53:02 +0000 (12:53 +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 697a8a1ec8eda4743e851706e973b874c98effd7..9d4d8b4f05af8de5b55d1647bde1dcef6fe005e6 100644 (file)
@@ -670,7 +670,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 b9c7cb908badc8cc0497fd80906e57430484f2b8..0c6a0a4f269fa235e0e2e188ea81733cb6bb548d 100644 (file)
@@ -507,7 +507,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,