Osvaldo Rosario Kussama <osvaldo_kussama(at)yahoo(dot)com(dot)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