v1-0001-Fix-typo-in-pg_publication.c.patch
application/octet-stream
Filename: v1-0001-Fix-typo-in-pg_publication.c.patch
Type: application/octet-stream
Part: 0
Message:
Fix typo in pg_publication.c
Patch
Format: format-patch
Series: patch v1-0001
Subject: Fix typo in pg_publication.c
| File | + | − |
|---|---|---|
| src/backend/catalog/pg_publication.c | 4 | 4 |
From 279ed0835175e0f7c93e69bec47fc6e3ab2f78a3 Mon Sep 17 00:00:00 2001
From: Peter Smith <peter.b.smith@fujitsu.com>
Date: Thu, 23 Jun 2022 17:26:59 +1000
Subject: [PATCH v1] Fix typo in pg_publication.c
---
src/backend/catalog/pg_publication.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/catalog/pg_publication.c b/src/backend/catalog/pg_publication.c
index 8c7fca6..c365de3 100644
--- a/src/backend/catalog/pg_publication.c
+++ b/src/backend/catalog/pg_publication.c
@@ -1082,7 +1082,7 @@ get_publication_name(Oid pubid, bool missing_ok)
Datum
pg_get_publication_tables(PG_FUNCTION_ARGS)
{
-#define NUM_PUBLICATOIN_TABLES_ELEM 3
+#define NUM_PUBLICATION_TABLES_ELEM 3
FuncCallContext *funcctx;
char *pubname = text_to_cstring(PG_GETARG_TEXT_PP(0));
Publication *publication;
@@ -1139,7 +1139,7 @@ pg_get_publication_tables(PG_FUNCTION_ARGS)
}
/* Construct a tuple descriptor for the result rows. */
- tupdesc = CreateTemplateTupleDesc(NUM_PUBLICATOIN_TABLES_ELEM);
+ tupdesc = CreateTemplateTupleDesc(NUM_PUBLICATION_TABLES_ELEM);
TupleDescInitEntry(tupdesc, (AttrNumber) 1, "relid",
OIDOID, -1, 0);
TupleDescInitEntry(tupdesc, (AttrNumber) 2, "attrs",
@@ -1162,8 +1162,8 @@ pg_get_publication_tables(PG_FUNCTION_ARGS)
HeapTuple pubtuple = NULL;
HeapTuple rettuple;
Oid relid = list_nth_oid(tables, funcctx->call_cntr);
- Datum values[NUM_PUBLICATOIN_TABLES_ELEM];
- bool nulls[NUM_PUBLICATOIN_TABLES_ELEM];
+ Datum values[NUM_PUBLICATION_TABLES_ELEM];
+ bool nulls[NUM_PUBLICATION_TABLES_ELEM];
/*
* Form tuple with appropriate data.
--
1.8.3.1