Re: Conditional Tables Feature on PostGresSQL

From: Sanchari Biswas <sanchari(dot)shrina(at)gmail(dot)com>
To: Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Conditional Tables Feature on PostGresSQL
Date: 2021-10-25 04:30:24
Message-ID: CAGDF-HS32cDLahxxnvPZ9AVLQQNRhUFfski+xbo1oSVkJ+ipUw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi Aditya,

Can we use variables in any column and then have (Boolean) constraints over
the variables?
Eg. x as a variable value and then corresponding condition (x ≠ 5 || x ≠
10).
So that this condition is satisfied when queried with values of column
(with variable x) other than the above two and the condition converts to
actual constant values, and returns tuples with that actual value.

Thanks,
Sanchari.

On Mon, Oct 25, 2021, 12:11 AM Aditya Toshniwal <
aditya(dot)toshniwal(at)enterprisedb(dot)com> wrote:

> Hi Sanchari,
>
> You can use the query tool to write anonymous blocks. Else, can you please
> explain with an example what exactly is the requirement ?
>
> On Fri, Oct 22, 2021 at 10:05 PM Sanchari Biswas (Shrina) <
> sanchari(dot)shrina(at)gmail(dot)com> wrote:
>
>> Hello,
>>
>> Is there any existing feature that enables the use of conditional tables
>> on PostGreSQL, specifically the usage of variables, and implementing those
>> variables in our (complex) queries?
>>
>> Thanks,
>> Sanchari.
>>
>>
>
> --
> Thanks,
> Aditya Toshniwal
> pgAdmin Hacker | Software Architect | *edbpostgres.com*
> <http://edbpostgres.com>
> "Don't Complain about Heat, Plant a TREE"
>

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Aditya Toshniwal 2021-10-25 04:52:48 Re: Conditional Tables Feature on PostGresSQL
Previous Message Aditya Toshniwal 2021-10-25 04:11:13 Re: Conditional Tables Feature on PostGresSQL