[HACKERS] send()/receive() and on-disk storage

2006-09-29 Thread Markus Schaber
Hi, Currently, there's a discussion on the pljava list, and we're confused about a small detail: 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

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

2006-09-29 Thread Martijn van Oosterhout
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? No. My position was that send()/receive() are only used for client

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

2006-09-29 Thread Markus Schaber
Hi, Martijn, Martijn van Oosterhout wrote: 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. Thanks. Markus -- Markus Schaber | Logical