Correct FormData_pg_attribute default values for xc_node_id
authorPavan Deolasee <[email protected]>
Fri, 16 Jun 2017 06:57:17 +0000 (12:27 +0530)
committerPavan Deolasee <[email protected]>
Fri, 16 Jun 2017 06:57:17 +0000 (12:27 +0530)
A new attribute got added to pg_attribute catalog in PG 10, we must update the
default FormData_pg_attribute for XL's xc_node_id system attribute with the
correct initial values.

src/backend/catalog/heap.c

index a1b7bd2f72b688285157ed519b542e939c4540ea..59520f189350d8130a48336a295257d9a73baa43 100644 (file)
@@ -210,7 +210,7 @@ static FormData_pg_attribute a7 = {
 static FormData_pg_attribute a8 = {
        0, {"xc_node_id"}, INT4OID, 0, sizeof(int32),
        XC_NodeIdAttributeNumber, 0, -1, -1,
-       true, 'p', 'i', true, false, false, true, 0
+       true, 'p', 'i', true, false, '\0', false, true, 0
 };
 
 static const Form_pg_attribute SysAtt[] = {&a1, &a2, &a3, &a4, &a5, &a6, &a7, &a8};