pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Euler Taveira <euler@eulerto.com>
To: brandon.m.simmons@gmail.com
To: pgsql-bugs@lists.postgresql.org
Subject:  Re: BUG #16912: pg_dump 11 does not respect --quote-all-identifiers within function bodies
Date: Thu, 04 Mar 2021 09:39:53 -0300
Message-ID: <f05cf309-75d7-43a2-b50c-b301230beb68@www.fastmail.com> (raw)
In-Reply-To: <16912-32693c592e24e8e8@postgresql.org>
References: <16912-32693c592e24e8e8@postgresql.org>

On Wed, Mar 3, 2021, at 8:39 PM, PG Bug reporting form wrote:
> I'm using regex to rewrite identifiers in a SQL dump and rely on the
> double-quotes.
> Within plpgsql `CREATE FUNCTION` statements in the resulting dump,
> identifiers are not quoted as I would expect.
IIUC this is not a bug. You don't provide enough detail to show the issue. Are  
you generating dynamic commands inside your PL/pgSQL function? If so, Postgres 
doesn't manipulate function body. You should use quote_ident (that adds quotes 
if necessary) or a similar user-defined function.


--
Euler Taveira
EDB   https://www.enterprisedb.com/

view thread (5+ messages)  latest in thread

Message-ID: <f05cf309-75d7-43a2-b50c-b301230beb68@www.fastmail.com>
Permalink:  ../f05cf309-75d7-43a2-b50c-b301230beb68@www.fastmail.com/
Also on:    postgresql.org/message-id/f05cf309-75d7-43a2-b50c-b301230beb68@www.fastmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: euler@eulerto.com, brandon.m.simmons@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re:  Re: BUG #16912: pg_dump 11 does not respect --quote-all-identifiers within function bodies
  In-Reply-To: <f05cf309-75d7-43a2-b50c-b301230beb68@www.fastmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox