summaryrefslogtreecommitdiff
path: root/src/backend/bootstrap/bootparse.y
diff options
context:
space:
mode:
authorPeter Eisentraut2022-05-13 05:17:29 +0000
committerPeter Eisentraut2022-05-13 05:17:29 +0000
commit30ed71e423ee63b263730b86326da2a629a29f84 (patch)
treea9a45b929b38cbef8f99d05da6419ef2e56b5781 /src/backend/bootstrap/bootparse.y
parent0cf16cb8ca4853b084c40eca310c4c9c3ebf7e2a (diff)
Indent C code in flex and bison files
In the style of pgindent, done semi-manually. Discussion: https://www.postgresql.org/message-id/flat/7d062ecc-7444-23ec-a159-acd8adf9b586%40enterprisedb.com
Diffstat (limited to 'src/backend/bootstrap/bootparse.y')
-rw-r--r--src/backend/bootstrap/bootparse.y19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/backend/bootstrap/bootparse.y b/src/backend/bootstrap/bootparse.y
index 142433f63f3..e5cf1b3d439 100644
--- a/src/backend/bootstrap/bootparse.y
+++ b/src/backend/bootstrap/bootparse.y
@@ -167,9 +167,9 @@ Boot_CreateStmt:
}
RPAREN
{
- TupleDesc tupdesc;
- bool shared_relation;
- bool mapped_relation;
+ TupleDesc tupdesc;
+ bool shared_relation;
+ bool mapped_relation;
do_start();
@@ -218,7 +218,7 @@ Boot_CreateStmt:
}
else
{
- Oid id;
+ Oid id;
id = heap_create_with_catalog($2,
PG_CATALOG_NAMESPACE,
@@ -269,8 +269,8 @@ Boot_InsertStmt:
Boot_DeclareIndexStmt:
XDECLARE INDEX boot_ident oidspec ON boot_ident USING boot_ident LPAREN boot_index_params RPAREN
{
- IndexStmt *stmt = makeNode(IndexStmt);
- Oid relationId;
+ IndexStmt *stmt = makeNode(IndexStmt);
+ Oid relationId;
elog(DEBUG4, "creating index \"%s\"", $3);
@@ -321,8 +321,8 @@ Boot_DeclareIndexStmt:
Boot_DeclareUniqueIndexStmt:
XDECLARE UNIQUE INDEX boot_ident oidspec ON boot_ident USING boot_ident LPAREN boot_index_params RPAREN
{
- IndexStmt *stmt = makeNode(IndexStmt);
- Oid relationId;
+ IndexStmt *stmt = makeNode(IndexStmt);
+ Oid relationId;
elog(DEBUG4, "creating unique index \"%s\"", $4);
@@ -400,7 +400,8 @@ boot_index_params:
boot_index_param:
boot_ident boot_ident
{
- IndexElem *n = makeNode(IndexElem);
+ IndexElem *n = makeNode(IndexElem);
+
n->name = $1;
n->expr = NULL;
n->indexcolname = NULL;