Re: Determine actual type of a pseudo-type argument

From: Steve Baldwin <steve(dot)baldwin(at)gmail(dot)com>
To: Gerald Britton <gerald(dot)britton(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Determine actual type of a pseudo-type argument
Date: 2020-01-05 22:37:47
Message-ID: CAKE1AibqmXbC2ozuuFN_P5esnwiw+594wrTNPvM_3ZRRQBJPjA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'm not sure what you mean by pseudo-type, but does the pg_typeof()
function help?

Steve

On Mon, Jan 6, 2020 at 9:34 AM Gerald Britton <gerald(dot)britton(at)gmail(dot)com>
wrote:

> If I use a pseudo-type in the argument list of a function definition (SQL
> or plpgsql), how can I determine the actual type used a runtime?
>
> --
> Gerald Britton, MCSE-DP, MVP
> LinkedIn Profile: http://ca.linkedin.com/in/geraldbritton
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2020-01-05 22:46:06 Re: Are PostgreSQL functions that return sets or tables evaluated lazily or eagerly?
Previous Message Gerald Britton 2020-01-05 22:34:21 Determine actual type of a pseudo-type argument