From: | Wells Oliver <wells(dot)oliver(at)gmail(dot)com> |
---|---|
To: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
Cc: | Holger Jakobs <holger(at)jakobs(dot)com>, "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | Re: SELECTing from a function where i don't want the results |
Date: | 2020-07-08 00:10:20 |
Message-ID: | CAOC+FBWojV_WQvOAR-eX4oUmbxR_wzRzQrr5G96Awu=sppLQgA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Yeah. I just kinda want a silent SELECT since the function I'm calling just
deletes, and I don't care about the output.
I'm guessing this is just something I need to get over.
On Tue, Jul 7, 2020 at 5:07 PM David G. Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
wrote:
> On Tuesday, July 7, 2020, Holger Jakobs <holger(at)jakobs(dot)com> wrote:
>
>> You could combine the result with a NULL value, as any operations with
>> NULL result in NULL.
>>
>> SELECT mydelete(r) + NULL FROM sometable;
>>
> So now you have 100 rows containing null (assuming that indeed function
> result + unknown means something and you don’t just get an error) which is
> no better than what is the probably 100 rows of void output the OP is
> complaining about.
>
> David J.
>
>
--
Wells Oliver
wells(dot)oliver(at)gmail(dot)com <wellsoliver(at)gmail(dot)com>
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2020-07-08 00:18:16 | Re: SELECTing from a function where i don't want the results |
Previous Message | David G. Johnston | 2020-07-08 00:07:20 | Re: SELECTing from a function where i don't want the results |