Re: Is there a way to create a functional index that tables tableoid column as an arg?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ryan Murphy <ryanfmurphy(at)gmail(dot)com>
Cc: David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Is there a way to create a functional index that tables tableoid column as an arg?
Date: 2018-03-13 20:52:16
Message-ID: 1883.1520974336@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ryan Murphy <ryanfmurphy(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2018-03-13 22:28:35 Re: query_to_xml() returns invalid XML when query returns no rows
Previous Message Ryan Murphy 2018-03-13 20:05:46 Re: Is there a way to create a functional index that tables tableoid column as an arg?