Re: PL/pgSQL's "open cur for execute" provides workarouned... Re: cursors with prepared statements

2023-04-16 Thread Bryn Llewellyn
> adrian.kla...@aklaver.com wrote: > >> b...@yugabyte.com wrote: >> >> It seems that there must be different underlying mechanisms at work and that >> this explains why creating a cursor using SQL to execute a prepared >> statement fails but doing this using PL/pgSQL succeeds. What's going on

Re: Call a Normal function inside a Trigger Function

2023-04-16 Thread FOUTE K . Jaurès
Thanks @Adrian Klaver It's clear for me now. On Sun, 16 Apr 2023, 20:13 Adrian Klaver, wrote: > On 4/16/23 11:47, FOUTE K. Jaurès wrote: > > Can I have an example please? Or a link > > create table trg_test (id integer, fld_1 varchar, fld_2 boolean); > > > CREATE OR REPLACE FUNCTION

Re: Call a Normal function inside a Trigger Function

2023-04-16 Thread Pavel Stehule
Hi ne 16. 4. 2023 v 20:47 odesílatel FOUTE K. Jaurès napsal: > Can I have an example please? Or a link > > On Sun, 16 Apr 2023, 17:08 Pavel Stehule, wrote: > >> Hi >> >> >> ne 16. 4. 2023 v 16:15 odesílatel FOUTE K. Jaurès >> napsal: >> >>> Hello, >>> >>> Is it possible to call a function

Re: Call a Normal function inside a Trigger Function

2023-04-16 Thread Adrian Klaver
On 4/16/23 11:47, FOUTE K. Jaurès wrote: Can I have an example please? Or a link create table trg_test (id integer, fld_1 varchar, fld_2 boolean); CREATE OR REPLACE FUNCTION public.child_fnc(token character varying) RETURNS void LANGUAGE plpgsql AS $function$ BEGIN IF token =

Re: Call a Normal function inside a Trigger Function

2023-04-16 Thread FOUTE K . Jaurès
Can I have an example please? Or a link On Sun, 16 Apr 2023, 17:08 Pavel Stehule, wrote: > Hi > > > ne 16. 4. 2023 v 16:15 odesílatel FOUTE K. Jaurès > napsal: > >> Hello, >> >> Is it possible to call a function inside a trigger function ? >> Any idea or link are welcome. Thanks in advance >>

Re: PL/pgSQL's "open cur for execute" provides workarouned... Re: cursors with prepared statements

2023-04-16 Thread Adrian Klaver
On 4/16/23 11:02, Bryn Llewellyn wrote:> statement fails but doing this using PL/pgSQL succeeds. What's going on under the covers? Pretty sure: https://www.postgresql.org/docs/current/spi.html -- Adrian Klaver adrian.kla...@aklaver.com

PL/pgSQL's "open cur for execute" provides workarouned... Re: cursors with prepared statements

2023-04-16 Thread Bryn Llewellyn
> b...@yugabyte.com wrote: > >> david.g.johns...@gmail.com wrote: >> >>> b...@yugabyte.com wrote: >>> >>> I found this email from Peter Eisentraut: >>> https://www.postgresql.org/message-id/762cc764-74f0-13fb-77ed-16f91c90f40d%402ndquadrant.com >>> >>> It caused the 42601 error, « syntax error

RE: FW: Error!

2023-04-16 Thread Arquimedes Aguirre
Hi Dear If I have the postgres and admin 4 program running with the password that I set from the beginning, but when I want to start the psql shell and set the same password, it throws me the error, I send the screen I think it's self explanatory . I repeat that when I put the password, which

Re: Call a Normal function inside a Trigger Function

2023-04-16 Thread Pavel Stehule
Hi ne 16. 4. 2023 v 16:15 odesílatel FOUTE K. Jaurès napsal: > Hello, > > Is it possible to call a function inside a trigger function ? > Any idea or link are welcome. Thanks in advance > sure, there is not any limit. Regards Pavel > > Best Regards > -- > Jaurès FOUTE >

Re: Suppress logging of "pg_hba.conf rejects connection for host"

2023-04-16 Thread Erik Wienhold
> On 16/04/2023 17:02 CEST ertan.kucuko...@1nar.com.tr wrote: > > One of the systems running PostgreSQL 14.7 receive a lot of lines like in > the subject. I have below pg_hba.conf line and that line causes these to be > logged. > > host all all 0.0.0.0/0 reject > > If possible, I do not want to

Re: Call a Normal function inside a Trigger Function

2023-04-16 Thread Erik Wienhold
> On 16/04/2023 16:18 CEST FOUTE K. Jaurès wrote: > > Is it possible to call a function inside a trigger function ? > Any idea or link are welcome. Thanks in advance Depends on what you want to do with the return value. Use PERFORM to ignore the result. [0] Use SELECT INTO to handle a

Suppress logging of "pg_hba.conf rejects connection for host"

2023-04-16 Thread ertan.kucukoglu
Hello, One of the systems running PostgreSQL 14.7 receive a lot of lines like in the subject. I have below pg_hba.conf line and that line causes these to be logged. host all all 0.0.0.0/0 reject If possible, I do not want to see these lines in my logs. But, I failed to find a parameter for it.

Call a Normal function inside a Trigger Function

2023-04-16 Thread FOUTE K . Jaurès
Hello, Is it possible to call a function inside a trigger function ? Any idea or link are welcome. Thanks in advance Best Regards -- Jaurès FOUTE