From: hubert depesz lubaczewski <depesz@depesz.com>
To: Wells Oliver <wells.oliver@gmail.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: SELECTing from a function where i don't want the results
Date: Wed, 8 Jul 2020 14:52:34 +0200
Message-ID: <20200708125234.GA21649@depesz.com> (raw)
In-Reply-To: <CAOC+FBXnaxi1yiEv=mL2J1tbnsLfqoneNOnikiQFobdEv=DaWw@mail.gmail.com>
References: <CAOC+FBXnaxi1yiEv=mL2J1tbnsLfqoneNOnikiQFobdEv=DaWw@mail.gmail.com>
On Tue, Jul 07, 2020 at 03:34:31PM -0700, Wells Oliver wrote:
> Vanilla SQL script calls a plpgsql function to delete some number of rows
> from three tables:
>
> SELECT mydelete(r) FROM sometable;
select count( mydelete(r) ) from sometable;
this will return just one row regardless of how many rows are in
sometable.
Best regards,
depesz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: depesz@depesz.com, wells.oliver@gmail.com
Subject: Re: SELECTing from a function where i don't want the results
In-Reply-To: <20200708125234.GA21649@depesz.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox