public inbox for [email protected]
help / color / mirror / Atom feedFrom: Adrian Klaver <[email protected]>
To: Marcos Pegoraro <[email protected]>
Cc: pgsql-general <[email protected]>
Subject: Re: Trying to understand pg_get_expr()
Date: Tue, 17 Mar 2026 13:19:49 -0700
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAB-JLwZdyUfnC047MzV9woskWH2dToNJEudR34AD8WprEn8Cig@mail.gmail.com>
References: <[email protected]>
<CAB-JLwZdyUfnC047MzV9woskWH2dToNJEudR34AD8WprEn8Cig@mail.gmail.com>
On 3/17/26 1:08 PM, Marcos Pegoraro wrote:
> Em ter., 17 de mar. de 2026 às 16:31, Adrian Klaver
> <[email protected] <mailto:[email protected]>> escreveu:
>
> Why does the = 'test' not return anything?
>
>
> for me pg_get_expr(adbin, adrelid) returns 'test'::character varying
> so it differs from 'test'
I should have indicated I tried casting:
SELECT
adrelid::regclass,
pg_typeof(pg_get_expr(adbin, adrelid)),
pg_get_expr(adbin, adrelid)
FROM
pg_attrdef
WHERE
adrelid = 'default_test'::regclass
AND pg_get_expr(adbin, 0) = 'test'::character varying;
adrelid | pg_typeof | pg_get_expr
---------+-----------+-------------
I also tried other combinations of casting both sides of "=" and it
still did not work.
>
> regards
> Marcos
--
Adrian Klaver
[email protected]
reply
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: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Trying to understand pg_get_expr()
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox