Re: where are the query output tuples stored

From: Dave Page <dpage(at)pgadmin(dot)org>
To: rod(at)iol(dot)ie
Cc: Qiqi YU <vonclemay(at)gmail(dot)com>, Pgadmin-Support <pgadmin-support(at)postgresql(dot)org>
Subject: Re: where are the query output tuples stored
Date: 2011-03-08 12:58:13
Message-ID: AANLkTimzCexdS+Xw8XpXWpO3Ae===N3yr_JhXRvv2U5Y@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

On Tue, Mar 8, 2011 at 5:18 PM, Raymond O'Donnell <rod(at)iol(dot)ie> wrote:
> On 08/03/2011 11:43, Qiqi YU wrote:
>>
>> Hi Raymond,
>>
>> That could be one possible way.
>> The thing is I need to extend the current pgAdmin tool, such as adding
>> a new tuple to the output panel (the output panel would contain many
>> tuples of resultant data). So which function in pgAdmin does the job
>> of creating the output table and filling in the data? I have been
>> using ddd to trace the program, but pgAdmin keeps starting new threads
>> and lost me.
>
> I'm afraid I don't know.... the source code for PgAdmin is at
> www.pgadmin.org, and the developers are on this list, so maybe they can help
> you.

The data is stored in a virtual table - the grid accesses it directly
from the pgSet object we get when we run the query, by using the
sqlResultTable::GetValue function whenever it wants a value.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Johann 'Myrkraverk' Oskarsson 2011-03-08 16:43:26 Why not .../bin/amd64/pg_config?
Previous Message Qiqi YU 2011-03-08 12:55:17 Re: where are the query output tuples stored