pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Barham <jbarham@gmail.com>
To: sandhya <sandhyar@amiindia.co.in>
Cc: postgre <pgsql-admin@postgresql.org>
Cc: Sivakumar K <sivakumark@aztec.soft.net>
Subject: Re: Reg: Records Size
Date: Fri, 11 Nov 2005 18:10:38 +0900
Message-ID: <4f34febc0511110110h1a1453f0tb3997a88b61dfd1e@mail.gmail.com> (raw)
In-Reply-To: <012a01c5e69e$2e454500$cd00000a@amiindiahjwbgh>
References: <012a01c5e69e$2e454500$cd00000a@amiindiahjwbgh>

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: <4f34febc0511110110h1a1453f0tb3997a88b61dfd1e@mail.gmail.com>
Permalink:  ../4f34febc0511110110h1a1453f0tb3997a88b61dfd1e@mail.gmail.com/
Also on:    postgresql.org/message-id/4f34febc0511110110h1a1453f0tb3997a88b61dfd1e@mail.gmail.com

 · 

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: jbarham@gmail.com, sandhyar@amiindia.co.in, sivakumark@aztec.soft.net
  Subject: Re: Reg: Records Size
  In-Reply-To: <4f34febc0511110110h1a1453f0tb3997a88b61dfd1e@mail.gmail.com>
  References: <012a01c5e69e$2e454500$cd00000a@amiindiahjwbgh> <4f34febc0511110110h1a1453f0tb3997a88b61dfd1e@mail.gmail.com>

* 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