@@ -1844,7 +1844,7 @@ AlterTableStmt:
18441844 AlterTableStmt *n = makeNode(AlterTableStmt);
18451845 n->relation = $3 ;
18461846 n->cmds = $4 ;
1847- n->relkind = OBJECT_TABLE;
1847+ n->objtype = OBJECT_TABLE;
18481848 n->missing_ok = false ;
18491849 $$ = (Node *)n;
18501850 }
@@ -1853,7 +1853,7 @@ AlterTableStmt:
18531853 AlterTableStmt *n = makeNode(AlterTableStmt);
18541854 n->relation = $5 ;
18551855 n->cmds = $6 ;
1856- n->relkind = OBJECT_TABLE;
1856+ n->objtype = OBJECT_TABLE;
18571857 n->missing_ok = true ;
18581858 $$ = (Node *)n;
18591859 }
@@ -1862,7 +1862,7 @@ AlterTableStmt:
18621862 AlterTableStmt *n = makeNode(AlterTableStmt);
18631863 n->relation = $3 ;
18641864 n->cmds = list_make1($4 );
1865- n->relkind = OBJECT_TABLE;
1865+ n->objtype = OBJECT_TABLE;
18661866 n->missing_ok = false ;
18671867 $$ = (Node *)n;
18681868 }
@@ -1871,7 +1871,7 @@ AlterTableStmt:
18711871 AlterTableStmt *n = makeNode(AlterTableStmt);
18721872 n->relation = $5 ;
18731873 n->cmds = list_make1($6 );
1874- n->relkind = OBJECT_TABLE;
1874+ n->objtype = OBJECT_TABLE;
18751875 n->missing_ok = true ;
18761876 $$ = (Node *)n;
18771877 }
@@ -1902,7 +1902,7 @@ AlterTableStmt:
19021902 AlterTableStmt *n = makeNode(AlterTableStmt);
19031903 n->relation = $3 ;
19041904 n->cmds = $4 ;
1905- n->relkind = OBJECT_INDEX;
1905+ n->objtype = OBJECT_INDEX;
19061906 n->missing_ok = false ;
19071907 $$ = (Node *)n;
19081908 }
@@ -1911,7 +1911,7 @@ AlterTableStmt:
19111911 AlterTableStmt *n = makeNode(AlterTableStmt);
19121912 n->relation = $5 ;
19131913 n->cmds = $6 ;
1914- n->relkind = OBJECT_INDEX;
1914+ n->objtype = OBJECT_INDEX;
19151915 n->missing_ok = true ;
19161916 $$ = (Node *)n;
19171917 }
@@ -1920,7 +1920,7 @@ AlterTableStmt:
19201920 AlterTableStmt *n = makeNode(AlterTableStmt);
19211921 n->relation = $3 ;
19221922 n->cmds = list_make1($4 );
1923- n->relkind = OBJECT_INDEX;
1923+ n->objtype = OBJECT_INDEX;
19241924 n->missing_ok = false ;
19251925 $$ = (Node *)n;
19261926 }
@@ -1951,7 +1951,7 @@ AlterTableStmt:
19511951 AlterTableStmt *n = makeNode(AlterTableStmt);
19521952 n->relation = $3 ;
19531953 n->cmds = $4 ;
1954- n->relkind = OBJECT_SEQUENCE;
1954+ n->objtype = OBJECT_SEQUENCE;
19551955 n->missing_ok = false ;
19561956 $$ = (Node *)n;
19571957 }
@@ -1960,7 +1960,7 @@ AlterTableStmt:
19601960 AlterTableStmt *n = makeNode(AlterTableStmt);
19611961 n->relation = $5 ;
19621962 n->cmds = $6 ;
1963- n->relkind = OBJECT_SEQUENCE;
1963+ n->objtype = OBJECT_SEQUENCE;
19641964 n->missing_ok = true ;
19651965 $$ = (Node *)n;
19661966 }
@@ -1969,7 +1969,7 @@ AlterTableStmt:
19691969 AlterTableStmt *n = makeNode(AlterTableStmt);
19701970 n->relation = $3 ;
19711971 n->cmds = $4 ;
1972- n->relkind = OBJECT_VIEW;
1972+ n->objtype = OBJECT_VIEW;
19731973 n->missing_ok = false ;
19741974 $$ = (Node *)n;
19751975 }
@@ -1978,7 +1978,7 @@ AlterTableStmt:
19781978 AlterTableStmt *n = makeNode(AlterTableStmt);
19791979 n->relation = $5 ;
19801980 n->cmds = $6 ;
1981- n->relkind = OBJECT_VIEW;
1981+ n->objtype = OBJECT_VIEW;
19821982 n->missing_ok = true ;
19831983 $$ = (Node *)n;
19841984 }
@@ -1987,7 +1987,7 @@ AlterTableStmt:
19871987 AlterTableStmt *n = makeNode(AlterTableStmt);
19881988 n->relation = $4 ;
19891989 n->cmds = $5 ;
1990- n->relkind = OBJECT_MATVIEW;
1990+ n->objtype = OBJECT_MATVIEW;
19911991 n->missing_ok = false ;
19921992 $$ = (Node *)n;
19931993 }
@@ -1996,7 +1996,7 @@ AlterTableStmt:
19961996 AlterTableStmt *n = makeNode(AlterTableStmt);
19971997 n->relation = $6 ;
19981998 n->cmds = $7 ;
1999- n->relkind = OBJECT_MATVIEW;
1999+ n->objtype = OBJECT_MATVIEW;
20002000 n->missing_ok = true ;
20012001 $$ = (Node *)n;
20022002 }
@@ -2027,7 +2027,7 @@ AlterTableStmt:
20272027 AlterTableStmt *n = makeNode(AlterTableStmt);
20282028 n->relation = $4 ;
20292029 n->cmds = $5 ;
2030- n->relkind = OBJECT_FOREIGN_TABLE;
2030+ n->objtype = OBJECT_FOREIGN_TABLE;
20312031 n->missing_ok = false ;
20322032 $$ = (Node *)n;
20332033 }
@@ -2036,7 +2036,7 @@ AlterTableStmt:
20362036 AlterTableStmt *n = makeNode(AlterTableStmt);
20372037 n->relation = $6 ;
20382038 n->cmds = $7 ;
2039- n->relkind = OBJECT_FOREIGN_TABLE;
2039+ n->objtype = OBJECT_FOREIGN_TABLE;
20402040 n->missing_ok = true ;
20412041 $$ = (Node *)n;
20422042 }
@@ -2856,7 +2856,7 @@ AlterCompositeTypeStmt:
28562856 /* can't use qualified_name, sigh */
28572857 n->relation = makeRangeVarFromAnyName($3 , @3 , yyscanner);
28582858 n->cmds = $4 ;
2859- n->relkind = OBJECT_TYPE;
2859+ n->objtype = OBJECT_TYPE;
28602860 $$ = (Node *)n;
28612861 }
28622862 ;
@@ -4072,7 +4072,7 @@ CreateAsStmt:
40724072 CreateTableAsStmt *ctas = makeNode(CreateTableAsStmt);
40734073 ctas->query = $6 ;
40744074 ctas->into = $4 ;
4075- ctas->relkind = OBJECT_TABLE;
4075+ ctas->objtype = OBJECT_TABLE;
40764076 ctas->is_select_into = false ;
40774077 ctas->if_not_exists = false ;
40784078 /* cram additional flags into the IntoClause */
@@ -4085,7 +4085,7 @@ CreateAsStmt:
40854085 CreateTableAsStmt *ctas = makeNode(CreateTableAsStmt);
40864086 ctas->query = $9 ;
40874087 ctas->into = $7 ;
4088- ctas->relkind = OBJECT_TABLE;
4088+ ctas->objtype = OBJECT_TABLE;
40894089 ctas->is_select_into = false ;
40904090 ctas->if_not_exists = true ;
40914091 /* cram additional flags into the IntoClause */
@@ -4131,7 +4131,7 @@ CreateMatViewStmt:
41314131 CreateTableAsStmt *ctas = makeNode(CreateTableAsStmt);
41324132 ctas->query = $7 ;
41334133 ctas->into = $5 ;
4134- ctas->relkind = OBJECT_MATVIEW;
4134+ ctas->objtype = OBJECT_MATVIEW;
41354135 ctas->is_select_into = false ;
41364136 ctas->if_not_exists = false ;
41374137 /* cram additional flags into the IntoClause */
@@ -4144,7 +4144,7 @@ CreateMatViewStmt:
41444144 CreateTableAsStmt *ctas = makeNode(CreateTableAsStmt);
41454145 ctas->query = $10 ;
41464146 ctas->into = $8 ;
4147- ctas->relkind = OBJECT_MATVIEW;
4147+ ctas->objtype = OBJECT_MATVIEW;
41484148 ctas->is_select_into = false ;
41494149 ctas->if_not_exists = true ;
41504150 /* cram additional flags into the IntoClause */
@@ -10695,7 +10695,7 @@ ExecuteStmt: EXECUTE name execute_param_clause
1069510695 n->params = $8 ;
1069610696 ctas->query = (Node *) n;
1069710697 ctas->into = $4 ;
10698- ctas->relkind = OBJECT_TABLE;
10698+ ctas->objtype = OBJECT_TABLE;
1069910699 ctas->is_select_into = false ;
1070010700 ctas->if_not_exists = false ;
1070110701 /* cram additional flags into the IntoClause */
@@ -10712,7 +10712,7 @@ ExecuteStmt: EXECUTE name execute_param_clause
1071210712 n->params = $11 ;
1071310713 ctas->query = (Node *) n;
1071410714 ctas->into = $7 ;
10715- ctas->relkind = OBJECT_TABLE;
10715+ ctas->objtype = OBJECT_TABLE;
1071610716 ctas->is_select_into = false ;
1071710717 ctas->if_not_exists = true ;
1071810718 /* cram additional flags into the IntoClause */
0 commit comments