pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan Wieck <JanWieck@Yahoo.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Hannu Krosing <hannu@tm.ee>
Cc: Peter Galbavy <peter.galbavy@knowtion.net>
Cc: pgsql-hackers@postgreSQL.org
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: More thoughts about FE/BE protocol
Date: Thu, 10 Apr 2003 16:28:46 -0400
Message-ID: <3E95D3FE.5DE02EA6@Yahoo.com> (raw)
References: <10478.1049927451@sss.pgh.pa.us>
	<003f01c2ff40$9f1a0e70$7c28a8c0@cblan.mblox.com>
	<3625.1049983061@sss.pgh.pa.us>
	<1049993435.1886.24.camel@fuji.krosing.net>
	<5015.1049993977@sss.pgh.pa.us>

Tom Lane wrote:
> 
> Hannu Krosing <hannu@tm.ee> writes:
> > Tom Lane kirjutas N, 10.04.2003 kell 16:57:
> >> See my response to ljb --- I think that in practice people assemble each
> >> message before sending anyway.
> 
> > I just tested it by running "select *" on 68M records (6.5 GB data)
> > table and you seem to be wrong - while psql shows nothing, its size
> > starts rapidly growing (I ^C it at ~500M) , while backend stays at
> > stable 32M, which indicates that postgres starts to push data out as
> > fast as it can get it.
> 
> Sure.  "Message" here is at the granularity of one data row, not an
> entire query result.

Could even be smaller since TOASTed items don't get loaded at the row
level but rather one after another. So a 68M row consisting of 4 17M
fields doesn't require 68M of memory to be sent to the client.


Jan

-- 
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #




view thread (25+ messages)  latest in thread

Message-ID: <3E95D3FE.5DE02EA6@Yahoo.com>
Permalink:  ../3E95D3FE.5DE02EA6@Yahoo.com/
Also on:    postgresql.org/message-id/3E95D3FE.5DE02EA6@Yahoo.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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: JanWieck@Yahoo.com, tgl@sss.pgh.pa.us, hannu@tm.ee, peter.galbavy@knowtion.net, pgsql-hackers@postgreSQL.org
  Subject: Re: More thoughts about FE/BE protocol
  In-Reply-To: <3E95D3FE.5DE02EA6@Yahoo.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