Re: How could I elog the tupleTableSlot to the fronted terminal?

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: "jacktby(at)gmail(dot)com" <jacktby(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: How could I elog the tupleTableSlot to the fronted terminal?
Date: 2023-01-30 17:44:37
Message-ID: 20230130174437.ldgmku7zvfihej77@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2023-Jan-30, jacktby(at)gmail(dot)com wrote:

> For example, I use "insert into t values(1)"; and I 'll get a tupleTableSlot,
>
> And Now I want to get the real data , that's 1, and then use elog() func
> to print it. Could you give me some codes to realize that? futhermore,
> what If the data type is text or other types? What do I need to change?

Maybe have a look at the 'debugtup()' function. It doesn't do exactly
what you want, but it may inspire you to write the code you need.

--
Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/
"All rings of power are equal,
But some rings of power are more equal than others."
(George Orwell's The Lord of the Rings)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message veem v 2023-01-30 19:43:00 Re: Sequence vs UUID
Previous Message Tom Lane 2023-01-30 16:48:43 Re: Sequence vs UUID