X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 30EBD52812 for ; Tue, 7 Jun 2005 01:54:50 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 18928-02 for ; Tue, 7 Jun 2005 04:54:40 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id CE3355283A for ; Tue, 7 Jun 2005 01:54:39 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j574sabC026013; Tue, 7 Jun 2005 00:54:36 -0400 (EDT) To: Ron Mayer Cc: Christopher Browne , pgsql-performance@postgresql.org Subject: Re: Need help to decide Mysql vs Postgres In-reply-to: <42A49DC3.1030800@cheapcomplexdevices.com> References: <0C072E7CC947D511AC9600A0CC7341200256CF37@xeon400.tagaudit.com> <42A49DC3.1030800@cheapcomplexdevices.com> Comments: In-reply-to Ron Mayer message dated "Mon, 06 Jun 2005 12:02:27 -0700" Date: Tue, 07 Jun 2005 00:54:36 -0400 Message-ID: <26012.1118120076@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/141 X-Sequence-Number: 12778 Ron Mayer writes: > Christopher Browne wrote: >> There is a common "use case" where MySQL(tm) ... >> select * from some_table where id='some primary key value'; > However this is a quite common use-case; and I wonder what the > best practices for postgresql is for applications like that. Setting up a prepared statement should be a noticeable win for that sort of thing. Also of course there are the usual tuning issues: have you picked an appropriate shared_buffers setting, etc. regards, tom lane