[GENERAL] Different handling of PL/pgSQL for-loop variables in 8.3.7 vs. 8.2.7 ???

2009-06-10 Thread Atul Chojar
We recently upgraded from postgres version 8.2.7 to 8.3.7. The below pl/pgsql test function behaves differently in the 2 versions. The code of the function is :- CREATE OR REPLACE FUNCTION public.testloop () RETURNS varchar AS $body$ BEGIN FOR idx IN 1..10 LOOP raise notice

[GENERAL] How to automatically propagate new/changed database functions from one database to another

2009-06-05 Thread Atul Chojar
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,

Re: [GENERAL] How to automatically propagate new/changed database functions from one database to another

2009-06-05 Thread Atul Chojar
Could you give some examples of such utilities? Thanks! atul -Original Message- From: pgsql-general-ow...@postgresql.org [mailto:pgsql-general-ow...@postgresql.org] On Behalf Of Joshua D. Drake Sent: Friday, June 05, 2009 1:37 PM To: Atul Chojar Cc: pgsql-general@postgresql.org

[GENERAL] How to pass parameters into a sql script ?

2009-05-28 Thread Atul Chojar
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

[GENERAL] Testing ... please reply

2009-04-22 Thread Atul Chojar
Could someone reply to this email? I am testing my subscription; joined over 2 months ago, but never get any response to questions Thanks! Atul -Original Message- From: pgsql-general-ow...@postgresql.org [mailto:pgsql-general-ow...@postgresql.org] On Behalf Of Joshua D. Drake Sent:

Re: [GENERAL] thanks for the testing replies ; now my first question - Logs say update done but not actually done or committed into database

2009-04-22 Thread Atul Chojar
Ferreira Sent: Wednesday, April 22, 2009 1:34 PM To: Atul Chojar Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Testing ... please reply Coming loud and clear ! joao On Wed, 2009-04-22 at 13:21 -0400, Atul Chojar wrote: Could someone reply to this email? I am testing my subscription