We want to implement a mechanism by which if any database
function is created or modified in one database, then the same should automatically
get done in another (1 or more) database(s). It seems triggers on system catalogs like pg_proc are not
allowed. Is there any way in postgres to do this, by some other way? From:
pgsql-admin-owner@xxxxxxxxxxxxxx [mailto:pgsql-admin-owner@xxxxxxxxxxxxxx] On
Behalf Of Atul Chojar Thanks - with quoting, the 2nd
select (select count(*)
from prod_debit_payments_unapplied where when_received = :p_date;)
works. Thanks! atul From: Vyacheslav Kalinin
[mailto:vka@xxxxxxxx] Looks like quoting issue. On Thu, May 28, 2009 at 6:57 PM, Atul Chojar <achojar@xxxxxxxxxxxx> wrote: We are unable to pass
parameters into any sql script. Could anyone look at the test below and give
any suggestions? PostgreSQL version is 8.2.7, running on Linux. Test Script ======== $ cat chk_param.sql select
''''||:p_date::char(8)||''''; select count(*) from
prod_debit_payments_unapplied where when_received = (select
''''||:p_date::char(8)||''''); select count(*) from
prod_debit_payments_unapplied where when_received = '20081023'; ... No virus
found in this incoming message. No virus
found in this incoming message. |