Re: COPY with a variable path - Mailing list pgsql-general

From Raymond O'Donnell
Subject Re: COPY with a variable path
Date
Msg-id 492F0BF8.6060901@iol.ie
Whole thread Raw
In response to COPY with a variable path  (Bill Todd <pg@dbginc.com>)
Responses Re: COPY with a variable path  (Bill Todd <pg@dbginc.com>)
Re: COPY with a variable path  (Bill Todd <pg@dbginc.com>)
List pgsql-general
On 27/11/2008 20:52, Bill Todd wrote:

> Substituting the input parameter for the literal path does not work and
> neither does using PREPARE/EXECUTE. How can I pass the file path as a
> parameter?

You could write a pl/pgsql function which constructs the query as a
string and then runs it with EXECUTE.

Ray.


------------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod@iol.ie
Galway Cathedral Recitals: http://www.galwaycathedral.org/recitals
------------------------------------------------------------------

pgsql-general by date:

Previous
From: Bill Todd
Date:
Subject: COPY with a variable path
Next
From: Tom Lane
Date:
Subject: Re: Expected password response, got message type 88