Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D0092475ABE for ; Tue, 13 Aug 2002 23:35:57 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 4802C47590F for ; Tue, 13 Aug 2002 23:35:57 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g7E3ZoVk004196; Tue, 13 Aug 2002 23:35:50 -0400 (EDT) To: David Gilbert Cc: "Thomas O'Connell" , pgsql-admin@postgresql.org Subject: Re: performance tuning: shared_buffers, sort_mem; swap In-reply-to: <15705.36038.645823.820155@canoe.velocet.net> References: <27214.1029257785@sss.pgh.pa.us> <1372.1029274016@sss.pgh.pa.us> <15705.36038.645823.820155@canoe.velocet.net> Comments: In-reply-to David Gilbert message dated "Tue, 13 Aug 2002 18:48:38 -0400" Date: Tue, 13 Aug 2002 23:35:49 -0400 Message-ID: <4195.1029296149@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/178 X-Sequence-Number: 5293 David Gilbert writes: > I don't often ask a question, but it's been bugging me for some time: > is there any reason why PostgreSQL must use SysV shared memory? > Coming from the BSD camp, I've often pondered why it doesn't use > BSD-style shared memory (which is often easier to allocate in the BSD > world). Well, I must say this is the first time I've heard of "BSD-style shared memory". What are the syscalls? How portable is it? Does it have the semantics we need (specifically, the ability to associate an ID with a shmem segment, and the ability to discover whether any other processes are attached to an existing shmem segment)? regards, tom lane