From: Tom Lane <tgl@sss.pgh.pa.us>
To: Suresh Kumar R <suresh.arsenal29@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Couldn't cast to record[]
Date: Thu, 03 Mar 2022 10:48:16 -0500
Message-ID: <3162859.1646322496@sss.pgh.pa.us> (raw)
In-Reply-To: <CAH+y2+ZJcGmtO_qtyROHzoZYWKXn1tvVPKtQNDi1kxrwusM-Tg@mail.gmail.com>
References: <CAH+y2+ZJcGmtO_qtyROHzoZYWKXn1tvVPKtQNDi1kxrwusM-Tg@mail.gmail.com>
Suresh Kumar R <suresh.arsenal29@gmail.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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, suresh.arsenal29@gmail.com
Subject: Re: Couldn't cast to record[]
In-Reply-To: <3162859.1646322496@sss.pgh.pa.us>
References: <CAH+y2+ZJcGmtO_qtyROHzoZYWKXn1tvVPKtQNDi1kxrwusM-Tg@mail.gmail.com> <3162859.1646322496@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox