9.5 BLOCKER: regrole and regnamespace and quotes

From: Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: 9.5 BLOCKER: regrole and regnamespace and quotes
Date: 2016-01-04 01:33:12
Message-ID: 5689CBD8.9020306@BlueTreble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I didn't see this discussed on the thread...

regrole and regnamespace don't run their output through quote_ident().
That's contrary to all the other reg* operators.

Worse, they also don't *allow* quoted input. Not only is that different
from reg*, it's the *opposite*:

select 'with spaces'::regclass;
ERROR: invalid name syntax
LINE 1: select 'with spaces'::regclass;
select '"with spaces"'::regclass;
regclass
---------------
"with spaces"
(1 row)

I think this needs to be fixed before 9.5 releases. :(
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2016-01-04 01:54:50 Re: Broken lock management in policy.c.
Previous Message Stephen Frost 2016-01-04 01:21:20 Re: Broken lock management in policy.c.