Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1evquE-0006Gw-B0 for pgsql-general@arkaria.postgresql.org; Tue, 13 Mar 2018 20:52:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1evquC-0004sO-Te for pgsql-general@arkaria.postgresql.org; Tue, 13 Mar 2018 20:52:20 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1evquC-0004s8-Hh for pgsql-general@lists.postgresql.org; Tue, 13 Mar 2018 20:52:20 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1evquA-0002Uv-91 for pgsql-general@postgresql.org; Tue, 13 Mar 2018 20:52:19 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w2DKqGQt001884; Tue, 13 Mar 2018 16:52:16 -0400 From: Tom Lane To: Ryan Murphy cc: David Rowley , pgsql-general Subject: Re: Is there a way to create a functional index that tables tableoid column as an arg? In-reply-to: References: Comments: In-reply-to Ryan Murphy message dated "Tue, 13 Mar 2018 15:05:46 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1882.1520974336.1@sss.pgh.pa.us> Date: Tue, 13 Mar 2018 16:52:16 -0400 Message-ID: <1883.1520974336@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Ryan Murphy 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