Re: WIP: Covering + unique indexes. - Mailing list pgsql-hackers

From Erik Rijkers
Subject Re: WIP: Covering + unique indexes.
Date
Msg-id 9f51082e06167bdb926dd49fbcc34c4c@xs4all.nl
Whole thread Raw
In response to Re: WIP: Covering + unique indexes.  (Anastasia Lubennikova <a.lubennikova@postgrespro.ru>)
List pgsql-hackers
On 2018-03-28 16:59, Anastasia Lubennikova wrote:
> Here is the new version of the patch set.

I can't get these to apply:

patch -b -l -F 25 -p 1 < 
/home/aardvark/download/pgpatches/0110/covering_indexes/20180328/0001-Covering-core-v8.patch


1 out of 19 hunks FAILED -- saving rejects to file 
src/backend/utils/cache/relcache.c.rej


$ cat src/backend/utils/cache/relcache.c.rej
--- src/backend/utils/cache/relcache.c
+++ src/backend/utils/cache/relcache.c
@@ -542,7 +542,7 @@
                 attp = (Form_pg_attribute) 
GETSTRUCT(pg_attribute_tuple);

                 if (attp->attnum <= 0 ||
-                       attp->attnum > relation->rd_rel->relnatts)
+                       attp->attnum > 
RelationGetNumberOfAttributes(relation))
                         elog(ERROR, "invalid attribute number %d for 
%s",
                                  attp->attnum, 
RelationGetRelationName(relation));





Erik Rijkers



pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: [HACKERS] [PATCH] Incremental sort
Next
From: Nikhil Sontakke
Date:
Subject: Re: [HACKERS] logical decoding of two-phase transactions