Skip to content

Commit 52b5c53

Browse files
committed
Fix typo in pg_publication.c
Author: Peter Smith Discussion: https://postgr.es/m/CAHut+PuV2XXjC4spHXy_EOhpD6MDrmmDMWnVJLYpd1_P=2+mJw@mail.gmail.com
1 parent 41a2b56 commit 52b5c53

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/catalog/pg_publication.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ get_publication_name(Oid pubid, bool missing_ok)
10821082
Datum
10831083
pg_get_publication_tables(PG_FUNCTION_ARGS)
10841084
{
1085-
#define NUM_PUBLICATOIN_TABLES_ELEM 3
1085+
#define NUM_PUBLICATION_TABLES_ELEM 3
10861086
FuncCallContext *funcctx;
10871087
char *pubname = text_to_cstring(PG_GETARG_TEXT_PP(0));
10881088
Publication *publication;
@@ -1139,7 +1139,7 @@ pg_get_publication_tables(PG_FUNCTION_ARGS)
11391139
}
11401140

11411141
/* Construct a tuple descriptor for the result rows. */
1142-
tupdesc = CreateTemplateTupleDesc(NUM_PUBLICATOIN_TABLES_ELEM);
1142+
tupdesc = CreateTemplateTupleDesc(NUM_PUBLICATION_TABLES_ELEM);
11431143
TupleDescInitEntry(tupdesc, (AttrNumber) 1, "relid",
11441144
OIDOID, -1, 0);
11451145
TupleDescInitEntry(tupdesc, (AttrNumber) 2, "attrs",
@@ -1162,8 +1162,8 @@ pg_get_publication_tables(PG_FUNCTION_ARGS)
11621162
HeapTuple pubtuple = NULL;
11631163
HeapTuple rettuple;
11641164
Oid relid = list_nth_oid(tables, funcctx->call_cntr);
1165-
Datum values[NUM_PUBLICATOIN_TABLES_ELEM];
1166-
bool nulls[NUM_PUBLICATOIN_TABLES_ELEM];
1165+
Datum values[NUM_PUBLICATION_TABLES_ELEM];
1166+
bool nulls[NUM_PUBLICATION_TABLES_ELEM];
11671167

11681168
/*
11691169
* Form tuple with appropriate data.

0 commit comments

Comments
 (0)