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:06 +0000 (12:53 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 18 Nov 2021 03:53:06 +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 a7cc59c8b22ef979b0238de565c2f3645c2860f5..12764b52be8b9965a4576f59358c17fe7fb939bc 100644 (file)
@@ -668,7 +668,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 1ffb7b4269b430200d9c37686d833d845b828637..a7d7a66ec0e933e1765fd95645564f96d97f93c7 100644 (file)
@@ -505,7 +505,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,