pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: jacktby@gmail.com <jacktby@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: How could I elog the tupleTableSlot to the fronted terminal?
Date: Mon, 30 Jan 2023 18:44:37 +0100
Message-ID: <20230130174437.ldgmku7zvfihej77@alvherre.pgsql> (raw)
In-Reply-To: <202301302306168304483@gmail.com>

On 2023-Jan-30, jacktby@gmail.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)





view thread (4+ messages)  latest in thread

Message-ID: <20230130174437.ldgmku7zvfihej77@alvherre.pgsql>
Permalink:  ../20230130174437.ldgmku7zvfihej77@alvherre.pgsql/
Also on:    postgresql.org/message-id/20230130174437.ldgmku7zvfihej77@alvherre.pgsql

 · 

reply

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: alvherre@alvh.no-ip.org, jacktby@gmail.com
  Subject: Re: How could I elog the tupleTableSlot to the fronted terminal?
  In-Reply-To: <20230130174437.ldgmku7zvfihej77@alvherre.pgsql>
  References: <202301302306168304483@gmail.com> <20230130174437.ldgmku7zvfihej77@alvherre.pgsql>

* 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