Re: PostgreSQL 14.4 ERROR: out of memory issues - Mailing list pgsql-general

From Joe Conway
Subject Re: PostgreSQL 14.4 ERROR: out of memory issues
Date
Msg-id 40a48d9d-a324-f69c-5ab6-5afb9050176e@joeconway.com
Whole thread Raw
In response to Re: PostgreSQL 14.4 ERROR: out of memory issues  (Aleš Zelený <zeleny.ales@gmail.com>)
Responses Re: PostgreSQL 14.4 ERROR: out of memory issues
List pgsql-general
On 8/4/22 08:34, Aleš Zelený wrote:
>> SELECT ... simple join of two tables...
>>      WHERE opd.id_data_provider = _id_data_provider
>>        AND CASE WHEN _external_id IS NULL
>>                 THEN external_id IS NULL
>>                 ELSE external_id = _external_id
>>            END
>>        AND CASE WHEN _external_complete_id IS NULL
>>                 THEN _external_complete_id IS NULL

Unrelated to your question, but shouldn't that actually read:

        AND CASE WHEN _external_complete_id IS NULL
                 THEN external_complete_id IS NULL
                     ^^^

>>                 ELSE external_complete_id = _external_complete_id
>>            END;
>> $function$

-- 
Joe Conway
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com



pgsql-general by date:

Previous
From: abrahim abrahao
Date:
Subject: sequence id overflow ERROR using timescaledb
Next
From: Jan Wieck
Date:
Subject: Re: Purpose of DEFERRABLE _and_ INITIALLY DEFERRED foreign key constraint checking?