Skip to content
Snippets Groups Projects
Commit 30dbc3df authored by Michael Paquier's avatar Michael Paquier
Browse files

decoder_raw: Fix compilation with Postgres 11

Upstream commit 2cd7084 has removed direct access to attribute data from
TupleDesc and replaces them by a macro, so apply the same change here.
parent 88648e76
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -319,7 +319,7 @@ print_where_clause_item(StringInfo s,
bool isnull;
TupleDesc tupdesc = RelationGetDescr(relation);
 
attr = tupdesc->attrs[natt - 1];
attr = TupleDescAttr(tupdesc, natt - 1);
 
/* Skip dropped columns and system columns */
if (attr->attisdropped || attr->attnum < 0)
Loading
Loading
@@ -430,7 +430,7 @@ decoder_raw_insert(StringInfo s,
Datum origval;
bool isnull;
 
attr = tupdesc->attrs[natt];
attr = TupleDescAttr(tupdesc, natt);
 
/* Skip dropped columns and system columns */
if (attr->attisdropped || attr->attnum < 0)
Loading
Loading
@@ -513,7 +513,7 @@ decoder_raw_update(StringInfo s,
Oid typoutput;
bool typisvarlena;
 
attr = tupdesc->attrs[natt];
attr = TupleDescAttr(tupdesc, natt);
 
/* Skip dropped columns and system columns */
if (attr->attisdropped || attr->attnum < 0)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment