pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedReg: Records Size
4+ messages / 2 participants
[nested] [flat]
* Reg: Records Size
@ 2005-11-11 08:59 sandhya <sandhyar@amiindia.co.in>
0 siblings, 1 reply; 4+ messages in thread
From: sandhya @ 2005-11-11 08:59 UTC (permalink / raw)
To: pgsql-admin; +Cc: Sivakumar K <sivakumark@aztec.soft.net>; sandhya <sandhyar@amiindia.co.in>
please...tell me if there is possibility of finding out the size of a record in the specified table.
Is there any built in function to know the size of each record by passing a query?
I need this Inorder to allocate the memory after retrieving the records.
Pls suggest me.
Thanks&Regards,
Sandhya
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Reg: Records Size
@ 2005-11-11 09:10 John Barham <jbarham@gmail.com>
parent: sandhya <sandhyar@amiindia.co.in>
0 siblings, 1 reply; 4+ messages in thread
From: John Barham @ 2005-11-11 09:10 UTC (permalink / raw)
To: sandhya <sandhyar@amiindia.co.in>; +Cc: pgsql-admin; Sivakumar K <sivakumark@aztec.soft.net>
On 11/11/05, sandhya <sandhyar@amiindia.co.in> wrote:
> please...tell me if there is possibility of finding out the size of a
> record in the specified table.
> Is there any built in function to know the size of each record by passing a
> query?
> I need this Inorder to allocate the memory after retrieving the records.
> Pls suggest me.
You are not giving enough information. What programming language are
you using? What do you mean by a "record"? Do you want to know much
memory to allocate to store each tuple resulting from a query? If so,
that will obviously depend on the type of each column and the size of
each field.
John Barham
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Reg: Records Size
@ 2005-11-11 10:20 sandhya <sandhyar@amiindia.co.in>
parent: John Barham <jbarham@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: sandhya @ 2005-11-11 10:20 UTC (permalink / raw)
To: John Barham <jbarham@gmail.com>; +Cc: pgsql-admin
Hi John ,
Thank you.
I am using C.
Yes i mean to allocate memory of each tuple resulting from a query.
Is there any function which gives the size of a tuple?
If so...Please tell me/Tell me how to proceed to do that?
Thanks&Regards,
Sandhya R
----- Original Message -----
From: "John Barham" <jbarham@gmail.com>
To: "sandhya" <sandhyar@amiindia.co.in>
Cc: "postgre" <pgsql-admin@postgresql.org>; "Sivakumar K"
<sivakumark@aztec.soft.net>
Sent: Friday, November 11, 2005 2:40 PM
Subject: Re: [ADMIN] Reg: Records Size
On 11/11/05, sandhya <sandhyar@amiindia.co.in> wrote:
> please...tell me if there is possibility of finding out the size of a
> record in the specified table.
> Is there any built in function to know the size of each record by passing
a
> query?
> I need this Inorder to allocate the memory after retrieving the records.
> Pls suggest me.
You are not giving enough information. What programming language are
you using? What do you mean by a "record"? Do you want to know much
memory to allocate to store each tuple resulting from a query? If so,
that will obviously depend on the type of each column and the size of
each field.
John Barham
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Reg: Records Size
@ 2005-11-11 13:34 John Barham <jbarham@gmail.com>
parent: sandhya <sandhyar@amiindia.co.in>
0 siblings, 0 replies; 4+ messages in thread
From: John Barham @ 2005-11-11 13:34 UTC (permalink / raw)
To: sandhya <sandhyar@amiindia.co.in>; +Cc: pgsql-admin
> I am using C.
Lucky you. I use Python. ;)
> Yes i mean to allocate memory of each tuple resulting from a query.
> Is there any function which gives the size of a tuple?
> If so...Please tell me/Tell me how to proceed to do that?
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2005-11-11 13:34 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-11-11 08:59 Reg: Records Size sandhya <sandhyar@amiindia.co.in>
2005-11-11 09:10 ` John Barham <jbarham@gmail.com>
2005-11-11 10:20 ` sandhya <sandhyar@amiindia.co.in>
2005-11-11 13:34 ` John Barham <jbarham@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