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 via email to