Re: fmtId() and pg_dump - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: fmtId() and pg_dump
Date
Msg-id Pine.LNX.4.44.0207172023540.9047-100000@localhost.localdomain
Whole thread Raw
In response to fmtId() and pg_dump  (nconway@klamath.dyndns.org (Neil Conway))
List pgsql-hackers
Neil Conway writes:

> My suggestion is: since fmtId() is almost always used with
> appendPQExpBuffer(), we should add a wrapper function to pg_dump
> that accepts an extra escape sequence (%S, or %i, perhaps), which
> would properly quote the input string before passing it to
> appendPQExpBuffer().

I think that would be nice.

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-hackers by date:

Previous
From: nconway@klamath.dyndns.org (Neil Conway)
Date:
Subject: error codes
Next
From: Peter Eisentraut
Date:
Subject: Re: Spec on pg_cast table/CREATE CAST command