Skip site navigation (1) Skip section navigation (2)

Re: send()/receive() and on-disk storage

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Markus Schaber <schabi(at)logix-tt(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: send()/receive() and on-disk storage
Date: 2006-09-29 13:51:56
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On Fri, Sep 29, 2006 at 03:44:07PM +0200, Markus Schaber wrote:
> Does PostgreSQL call the datatypes' defined send() function before
> storing the tuple data in the table, on disk, and call receive() when
> reading it again?


> My position was that send()/receive() are only used for client
> communication in the V3 protocol binary mode, and COPY in binary mode,
> but the backend stores them in the tables as_is (modulo compression/
> TOASTing).


It would be terribly inefficient to call those functions for each
read/write. The disk has the internal format, send/receive deal with a
portable not-host-dependant representation of the data.

Have a nice day,
Martijn van Oosterhout   <kleptog(at)svana(dot)org>
> From each according to his ability. To each according to his ability to litigate.

In response to


pgsql-hackers by date

Next:From: Heikki LinnakangasDate: 2006-09-29 13:54:58
Subject: Re: Block B-Tree concept
Previous:From: Markus SchaberDate: 2006-09-29 13:44:07
Subject: send()/receive() and on-disk storage

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group