mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
Collection of typo fixes.
Use "a" and "an" correctly, mostly in comments. Two error messages were also fixed (they were just elogs, so no translation work required). Two function comments in pg_proc.h were also fixed. Etsuro Fujita reported one of these, but I found a lot more with grep. Also fix a few other typos spotted while grepping for the a/an typos. For example, "consists out of ..." -> "consists of ...". Plus a "though"/ "through" mixup reported by Euler Taveira. Many of these typos were in old code, which would be nice to backpatch to make future backpatching easier. But much of the code was new, and I didn't feel like crafting separate patches for each branch. So no backpatching.
This commit is contained in:
@ -149,7 +149,7 @@ StartupDecodingContext(List *output_plugin_options,
|
||||
* replication slots.
|
||||
*
|
||||
* We can only do so if we're outside of a transaction (i.e. the case when
|
||||
* streaming changes via walsender), otherwise a already setup
|
||||
* streaming changes via walsender), otherwise an already setup
|
||||
* snapshot/xid would end up being ignored. That's not a particularly
|
||||
* bothersome restriction since the SQL interface can't be used for
|
||||
* streaming anyway.
|
||||
@ -225,7 +225,7 @@ CreateInitDecodingContext(char *plugin,
|
||||
|
||||
/* first some sanity checks that are unlikely to be violated */
|
||||
if (slot == NULL)
|
||||
elog(ERROR, "cannot perform logical decoding without a acquired slot");
|
||||
elog(ERROR, "cannot perform logical decoding without an acquired slot");
|
||||
|
||||
if (plugin == NULL)
|
||||
elog(ERROR, "cannot initialize logical decoding without a specified plugin");
|
||||
@ -377,7 +377,7 @@ CreateDecodingContext(XLogRecPtr start_lsn,
|
||||
|
||||
/* first some sanity checks that are unlikely to be violated */
|
||||
if (slot == NULL)
|
||||
elog(ERROR, "cannot perform logical decoding without a acquired slot");
|
||||
elog(ERROR, "cannot perform logical decoding without an acquired slot");
|
||||
|
||||
/* make sure the passed slot is suitable, these are user facing errors */
|
||||
if (slot->data.database == InvalidOid)
|
||||
@ -436,7 +436,7 @@ CreateDecodingContext(XLogRecPtr start_lsn,
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns true if an consistent initial decoding snapshot has been built.
|
||||
* Returns true if a consistent initial decoding snapshot has been built.
|
||||
*/
|
||||
bool
|
||||
DecodingContextReady(LogicalDecodingContext *ctx)
|
||||
|
Reference in New Issue
Block a user