Re: PQescapeIdentifier - Mailing list pgsql-hackers

From Tom Lane
Subject Re: PQescapeIdentifier
Date
Msg-id 5991.1149044918@sss.pgh.pa.us
Whole thread Raw
In response to PQescapeIdentifier  (Christopher Kings-Lynne <chris.kings-lynne@calorieking.com>)
Responses Re: PQescapeIdentifier
List pgsql-hackers
Christopher Kings-Lynne <chris.kings-lynne@calorieking.com> writes:
> Here's a question. I wish to add a function to libpq to escape 
> PostgreSQL identifiers.  Will this function be subject to the same 
> security/encoding issues as PQescapeString?

Is this of any general-purpose use?  How many apps are really prepared
to let an untrusted user dictate which columns are selected/compared?

But to answer your question, yes, I can certainly imagine
encoding-related risks...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Christopher Kings-Lynne
Date:
Subject: PQescapeIdentifier
Next
From: Christopher Kings-Lynne
Date:
Subject: Re: PQescapeIdentifier