diff options
author | Michael Paquier | 2022-06-23 07:42:27 +0000 |
---|---|---|
committer | Michael Paquier | 2022-06-23 07:42:27 +0000 |
commit | 52b5c53ae8ca63449788dea31d766895ba9c8553 (patch) | |
tree | 7e62392fac75baf272b67ab2453390d0f149d67c /src | |
parent | 41a2b56ae80bd13bc4cb09c48c6f873fd4382e05 (diff) |
Fix typo in pg_publication.c
Author: Peter Smith
Discussion: https://postgr.es/m/CAHut+PuV2XXjC4spHXy_EOhpD6MDrmmDMWnVJLYpd1_P=2+mJw@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/catalog/pg_publication.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/catalog/pg_publication.c b/src/backend/catalog/pg_publication.c index 8c7fca62de3..c365de3a72a 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. |