From: Shaun Thomas <sthomas@peak6.com>
To: Jim Nasby <jim@nasby.net>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Svetlin Manavski <svetlin.manavski@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: seq scan in the case of max() on the primary key column
Date: Tue, 21 Jun 2011 14:49:46 -0500
Message-ID: <4E00F5DA.8090500@peak6.com> (raw)
In-Reply-To: <B7D0666C-FE18-4052-A2B1-0442E23CD5CC@nasby.net>
References: <BANLkTikntdSrhneCPzPutY9T-sAQpFXTMw@mail.gmail.com>
<BANLkTikuFEyOse=sUoH0BXYrpUW=7Pp_tw@mail.gmail.com>
<4DFA4D2F.8020101@peak6.com>
<B7D0666C-FE18-4052-A2B1-0442E23CD5CC@nasby.net>
On 06/17/2011 03:31 PM, Jim Nasby wrote:
> c_parent_oid CONSTANT oid := (p_parent_schema || '.' ||
> p_parent_table )::regclass;
Well isn't *that* a handy bit of magic. How did I not know about that?
Thanks!
--
Shaun Thomas
OptionsHouse | 141 W. Jackson Blvd. | Suite 800 | Chicago IL, 60604
312-676-8870
sthomas@peak6.com
______________________________________________
See http://www.peak6.com/email_disclaimer.php
for terms and conditions related to this email
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: sthomas@peak6.com, jim@nasby.net, magnus@hagander.net, svetlin.manavski@gmail.com
Subject: Re: seq scan in the case of max() on the primary key column
In-Reply-To: <4E00F5DA.8090500@peak6.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox