Re: execute in pl/pgsql

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dino Vliet <dino_vliet(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: execute in pl/pgsql
Date: 2006-09-10 14:55:00
Message-ID: 6883.1157900100@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dino Vliet <dino_vliet(at)yahoo(dot)com> writes:
> In my pl/pgsql procedure I have the following line:

> execute 'copy cancella to ' || location || ' with
> delimiter as \',\'';

quote_literal(location) would work much better and more safely.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bill Bartlett 2006-09-10 15:19:18 Re: Reinstall problem of PostgreSQL in Windows XP
Previous Message mj 2006-09-10 13:51:10 Rules / Triggers and Return Row Count