pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedHow could I elog the tupleTableSlot to the fronted terminal?
4+ messages / 3 participants
[nested] [flat]
* How could I elog the tupleTableSlot to the fronted terminal?
@ 2023-01-30 15:23 jacktby@gmail.com <jacktby@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: jacktby@gmail.com @ 2023-01-30 15:23 UTC (permalink / raw)
To: pgsql-general <pgsql-general@lists.postgresql.org>
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?
--------------
jacktby@gmail.com
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: How could I elog the tupleTableSlot to the fronted terminal?
@ 2023-01-30 17:44 Alvaro Herrera <alvherre@alvh.no-ip.org>
parent: jacktby@gmail.com <jacktby@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Alvaro Herrera @ 2023-01-30 17:44 UTC (permalink / raw)
To: jacktby@gmail.com <jacktby@gmail.com>; +Cc: pgsql-general <pgsql-general@lists.postgresql.org>
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)
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Re: How could I elog the tupleTableSlot to the fronted terminal?
@ 2023-01-31 16:12 jacktby@gmail.com <jacktby@gmail.com>
parent: Alvaro Herrera <alvherre@alvh.no-ip.org>
0 siblings, 1 reply; 4+ messages in thread
From: jacktby@gmail.com @ 2023-01-31 16:12 UTC (permalink / raw)
To: Alvaro Herrera <alvherre@alvh.no-ip.org>; pgsql-general <pgsql-general@lists.postgresql.org>
>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)
I use the debugtup to print, and I find out there are "printf", it doesn't print anything
to the terminal. I need to know how to use this debugtup func. I think I use it as a mistake
--------------
jacktby@gmail.com
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: How could I elog the tupleTableSlot to the fronted terminal?
@ 2023-02-01 08:20 Kyotaro Horiguchi <horikyota.ntt@gmail.com>
parent: jacktby@gmail.com <jacktby@gmail.com>
0 siblings, 0 replies; 4+ messages in thread
From: Kyotaro Horiguchi @ 2023-02-01 08:20 UTC (permalink / raw)
To: jacktby@gmail.com; +Cc: alvherre@alvh.no-ip.org; pgsql-general@lists.postgresql.org
At Wed, 1 Feb 2023 00:12:44 +0800, "jacktby@gmail.com" <jacktby@gmail.com> wrote in
> I use the debugtup to print, and I find out there are "printf", it doesn't print anything
> to the terminal. I need to know how to use this debugtup func. I think I use it as a mistake
It's not clear to me what the terminal means, but can you find it in
server log instead?
reagrds.
--
Kyotaro Horiguchi
NTT Open Source Software Center
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2023-02-01 08:20 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-01-30 15:23 How could I elog the tupleTableSlot to the fronted terminal? jacktby@gmail.com <jacktby@gmail.com>
2023-01-30 17:44 ` Alvaro Herrera <alvherre@alvh.no-ip.org>
2023-01-31 16:12 ` jacktby@gmail.com <jacktby@gmail.com>
2023-02-01 08:20 ` Kyotaro Horiguchi <horikyota.ntt@gmail.com>
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