From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ryan Murphy <ryanfmurphy@gmail.com>
Cc: David Rowley <david.rowley@2ndquadrant.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Is there a way to create a functional index that tables tableoid column as an arg?
Date: Tue, 13 Mar 2018 16:52:16 -0400
Message-ID: <1883.1520974336@sss.pgh.pa.us> (raw)
In-Reply-To: <CAHeEsBeCchYGrMbZ=f07jMPO6t=WZRY7dvQhgLCTBwOMB0KXXg@mail.gmail.com>
References: <CAHeEsBejhpikWu+hEfsiiXKR0kCAnmgmuFWG8C_oQjxQ9D62=A@mail.gmail.com>
<CAKJS1f9t5Kn+pjbxAGOioAv40uPeNiNwRcwLWzhvaZJEZtCqrw@mail.gmail.com>
<CAHeEsBeCchYGrMbZ=f07jMPO6t=WZRY7dvQhgLCTBwOMB0KXXg@mail.gmail.com>
Ryan Murphy <ryanfmurphy@gmail.com> writes:
> Hi David! Thanks for the reply.
>> tableoid might be an exception to
>> this, but it does not really seem like a useful column to index,
>> giving it would be indexing the same value for each record in the
>> table.
> Unless you're using inheritance - then tableoid may vary. That's the case
> I'm interested in.
Uh, no, not within a single table ... and indexes only cover one table.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, ryanfmurphy@gmail.com, david.rowley@2ndquadrant.com
Subject: Re: Is there a way to create a functional index that tables tableoid column as an arg?
In-Reply-To: <1883.1520974336@sss.pgh.pa.us>
References: <CAHeEsBejhpikWu+hEfsiiXKR0kCAnmgmuFWG8C_oQjxQ9D62=A@mail.gmail.com> <CAKJS1f9t5Kn+pjbxAGOioAv40uPeNiNwRcwLWzhvaZJEZtCqrw@mail.gmail.com> <CAHeEsBeCchYGrMbZ=f07jMPO6t=WZRY7dvQhgLCTBwOMB0KXXg@mail.gmail.com> <1883.1520974336@sss.pgh.pa.us>
* 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