Re: Reg: Records Size

From: "sandhya" <sandhyar(at)amiindia(dot)co(dot)in>
To: "John Barham" <jbarham(at)gmail(dot)com>
Cc: "postgre" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Reg: Records Size
Date: 2005-11-11 10:20:15
Message-ID: 017301c5e6a9$81f4e920$cd00000a@amiindiahjwbgh
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmail(dot)com>
To: "sandhya" <sandhyar(at)amiindia(dot)co(dot)in>
Cc: "postgre" <pgsql-admin(at)postgresql(dot)org>; "Sivakumar K"
<sivakumark(at)aztec(dot)soft(dot)net>
Sent: Friday, November 11, 2005 2:40 PM
Subject: Re: [ADMIN] Reg: Records Size

On 11/11/05, sandhya <sandhyar(at)amiindia(dot)co(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message John Barham 2005-11-11 13:34:25 Re: Reg: Records Size
Previous Message John Barham 2005-11-11 09:10:38 Re: Reg: Records Size