pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: sandhya <sandhyar@amiindia.co.in>
To: John Barham <jbarham@gmail.com>
Cc: postgre <pgsql-admin@postgresql.org>
Subject: Re: Reg: Records Size
Date: Fri, 11 Nov 2005 15:50:15 +0530
Message-ID: <017301c5e6a9$81f4e920$cd00000a@amiindiahjwbgh> (raw)
References: <012a01c5e69e$2e454500$cd00000a@amiindiahjwbgh>
	<4f34febc0511110110h1a1453f0tb3997a88b61dfd1e@mail.gmail.com>

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




view thread (4+ messages)  latest in thread

Message-ID: <017301c5e6a9$81f4e920$cd00000a@amiindiahjwbgh>
Permalink:  ../017301c5e6a9$81f4e920$cd00000a@amiindiahjwbgh/
Also on:    postgresql.org/message-id/017301c5e6a9$81f4e920$cd00000a@amiindiahjwbgh

 · 

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-admin@postgresql.org
  Cc: sandhyar@amiindia.co.in, jbarham@gmail.com
  Subject: Re: Reg: Records Size
  In-Reply-To: <017301c5e6a9$81f4e920$cd00000a@amiindiahjwbgh>
  References: <012a01c5e69e$2e454500$cd00000a@amiindiahjwbgh> <4f34febc0511110110h1a1453f0tb3997a88b61dfd1e@mail.gmail.com> <017301c5e6a9$81f4e920$cd00000a@amiindiahjwbgh>

* 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