Re: plpgsql variable assignment with union is broken

From: easteregg(at)verfriemelt(dot)org
To: "PostgreSQL Hackers" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Cc: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>
Subject: Re: plpgsql variable assignment with union is broken
Date: 2021-01-07 08:19:06
Message-ID: 20210107081906.6b331059@mail.verfriemelt.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

to be clear, that was existing code within our codebase, it was used as a very bad alternative to an if/else clause. think of it as an tenery operator. thats just straight up bad code as tom said. but even if it is, its a change and i wanted to check, if its intended. so thank you for you time and consideration!

Browse pgsql-hackers by date

  From Date Subject
Next Message Bharath Rupireddy 2021-01-07 08:21:40 Re: [PATCH] postgres_fdw connection caching - cause remote sessions linger till the local session exit
Previous Message Dmitry Dolgov 2021-01-07 08:16:32 Re: [HACKERS] [PATCH] Generic type subscripting