pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Osvaldo Rosario Kussama <osvaldo_kussama@yahoo.com.br>
Cc: hongliu zou <zouhongliu@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Syntax Error in COPY when “create function”
Date: Tue, 27 Feb 2007 12:25:54 -0500
Message-ID: <21453.1172597154@sss.pgh.pa.us> (raw)
In-Reply-To: <45E464B3.30402@yahoo.com.br>
References: <35201a90702261904o44c18d99oa9fdbeb0dca4c9c0@mail.gmail.com>
	<45E464B3.30402@yahoo.com.br>

Osvaldo Rosario Kussama <osvaldo_kussama@yahoo.com.br> writes:
>> |Does this mean the "filename" in COPY command can not be a variable?|

Got it in one.

You can use EXECUTE to put together commands that require a variable
in places where PG doesn't allow one.

			regards, tom lane



view thread (2+ messages)

Message-ID: <21453.1172597154@sss.pgh.pa.us>
Permalink:  ../21453.1172597154@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21453.1172597154@sss.pgh.pa.us

 · 

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-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, osvaldo_kussama@yahoo.com.br, zouhongliu@gmail.com
  Subject: Re: Syntax Error in COPY when “create function”
  In-Reply-To: <21453.1172597154@sss.pgh.pa.us>

* 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