X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 1CB81D1B45E for ; Sat, 3 Jan 2004 06:08:01 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 31118-04 for ; Sat, 3 Jan 2004 02:07:11 -0400 (AST) Received: from ms-smtp-02.tampabay.rr.com (ms-smtp-02-smtplb.tampabay.rr.com [65.32.5.132]) by svr1.postgresql.org (Postfix) with ESMTP id B0780D1B4CA for ; Sat, 3 Jan 2004 02:07:10 -0400 (AST) Received: from unity.basin.cultured.net (24161231hfc249.tampabay.rr.com [24.161.231.249]) by ms-smtp-02.tampabay.rr.com (8.12.10/8.12.7) with ESMTP id i03674qX005076; Sat, 3 Jan 2004 01:07:04 -0500 (EST) Subject: Re: "fun with multipart primary keys" hobby kit From: Chris Trawick To: Tom Lane Cc: pgsql-performance@postgresql.org In-Reply-To: <19196.1073109474@sss.pgh.pa.us> References: <1073108262.733.27.camel@unity.basin.cultured.net> <19196.1073109474@sss.pgh.pa.us> Content-Type: text/plain Message-Id: <1073110034.733.42.camel@unity.basin.cultured.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Sat, 03 Jan 2004 01:07:14 -0500 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/14 X-Sequence-Number: 5189 Actually, it would appear that I was born yesterday. I had no idea. Added the cast and it fell right in. Thanks! chris <-- feeling pretty dumb right now On Sat, 2004-01-03 at 00:57, Tom Lane wrote: > Chris Trawick writes: > > contactid | bigint | not null > ^^^^^^ > > > Am I reading this right? Is it only using half of the fully-qualified > > pk index? How do I diagnose this? Has anyone seen this before? > > Surely you've been around here long enough to remember the > must-cast-bigint-constants problem. > > regards, tom lane