Re: [Fwd: plpgsql and booleans?] - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [Fwd: plpgsql and booleans?]
Date
Msg-id 24480.1074616126@sss.pgh.pa.us
Whole thread Raw
In response to [Fwd: plpgsql and booleans?]  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Responses Re: [Fwd: plpgsql and booleans?]  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List pgsql-hackers
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
> When writing a PL/pgSQL trigger function how do you handle the case :

> EXECUTE ''UPDATE test_table SET test_col '' || 
> quote_literal(NEW.test_col2) || '';'';

Seems it'd be easier without EXECUTE:
UPDATE test_table SET test_col = NEW.test_col2;
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: PostGIS dropgeometrycolumn function (Was: Re: [7.4] "permissions problem" with pl/pgsql function )
Next
From: Tom Lane
Date:
Subject: Re: PostGIS dropgeometrycolumn function (Was: Re: [7.4] "permissions problem" with pl/pgsql function )