Re: Couldn't cast to record[]

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Suresh Kumar R <suresh(dot)arsenal29(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Couldn't cast to record[]
Date: 2022-03-03 15:48:16
Message-ID: 3162859.1646322496@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Suresh Kumar R <suresh(dot)arsenal29(at)gmail(dot)com> writes:
> When I query that table I need the pg_typeof(column) as record[] instead of
> composite_type[].

Why? record[] is considered a pseudotype (polymorphic type),
which is why casting to it doesn't do anything.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message hubert depesz lubaczewski 2022-03-03 16:39:21 Re: Interesting fail when migrating Pg from Ubuntu Bionic to Focal
Previous Message hubert depesz lubaczewski 2022-03-03 15:11:56 Re: Interesting fail when migrating Pg from Ubuntu Bionic to Focal