Like commit
123661427b, these were discovered while reviewing
Aleksander Alekseev's proposed changes to pgindent.
13 files changed:
*
* The data buffer is *not* freed, allowing to reuse the buffer with
* pq_beginmessage_reuse.
*
* The data buffer is *not* freed, allowing to reuse the buffer with
* pq_beginmessage_reuse.
- --------------------------------
+ * --------------------------------
void
pq_endmessage_reuse(StringInfo buf)
{
void
pq_endmessage_reuse(StringInfo buf)
{
* view_query_is_auto_updatable - test whether the specified view definition
* represents an auto-updatable view. Returns NULL (if the view can be updated)
* or a message string giving the reason that it cannot be.
* view_query_is_auto_updatable - test whether the specified view definition
* represents an auto-updatable view. Returns NULL (if the view can be updated)
* or a message string giving the reason that it cannot be.
* The returned string has not been translated; if it is shown as an error
* message, the caller should apply _() to translate it.
*
* The returned string has not been translated; if it is shown as an error
* message, the caller should apply _() to translate it.
*
- * Open a file that was created with FileSetCreate() */
+ * Open a file that was created with FileSetCreate()
+ */
File
FileSetOpen(FileSet *fileset, const char *name, int mode)
{
File
FileSetOpen(FileSet *fileset, const char *name, int mode)
{
* pg_strtoint16() will throw ereport() upon bad input format or overflow;
* while pg_strtoint16_safe() instead returns such complaints in *escontext,
* if it's an ErrorSaveContext.
* pg_strtoint16() will throw ereport() upon bad input format or overflow;
* while pg_strtoint16_safe() instead returns such complaints in *escontext,
* if it's an ErrorSaveContext.
* NB: Accumulate input as an unsigned number, to deal with two's complement
* representation of the most negative number, which can't be represented as a
* signed positive number.
* NB: Accumulate input as an unsigned number, to deal with two's complement
* representation of the most negative number, which can't be represented as a
* signed positive number.
* This should be called only for an index that is known to have an associated
* exclusion constraint or primary key/unique constraint using WITHOUT
* OVERLAPS.
* This should be called only for an index that is known to have an associated
* exclusion constraint or primary key/unique constraint using WITHOUT
* OVERLAPS.
* It returns arrays (palloc'd in caller's context) of the exclusion operator
* OIDs, their underlying functions' OIDs, and their strategy numbers in the
* index's opclasses. We cache all this information since it requires a fair
* It returns arrays (palloc'd in caller's context) of the exclusion operator
* OIDs, their underlying functions' OIDs, and their strategy numbers in the
* index's opclasses. We cache all this information since it requires a fair
* utf: input string in UTF8 encoding (need not be null-terminated)
* len: length of input string (in bytes)
* iso: pointer to the output area (must be large enough!)
* utf: input string in UTF8 encoding (need not be null-terminated)
* len: length of input string (in bytes)
* iso: pointer to the output area (must be large enough!)
- (output string will be null-terminated)
+ * (output string will be null-terminated)
* map: conversion map for single characters
* cmap: conversion map for combined characters
* (optional, pass NULL if none)
* map: conversion map for single characters
* cmap: conversion map for combined characters
* (optional, pass NULL if none)
* iso: input string in local encoding (need not be null-terminated)
* len: length of input string (in bytes)
* utf: pointer to the output area (must be large enough!)
* iso: input string in local encoding (need not be null-terminated)
* len: length of input string (in bytes)
* utf: pointer to the output area (must be large enough!)
- (output string will be null-terminated)
+ * (output string will be null-terminated)
* map: conversion map for single characters
* cmap: conversion map for combined characters
* (optional, pass NULL if none)
* map: conversion map for single characters
* cmap: conversion map for combined characters
* (optional, pass NULL if none)
* Convert string to encoding encoding_name. The source
* encoding is the DB encoding.
*
* Convert string to encoding encoding_name. The source
* encoding is the DB encoding.
*
- * BYTEA convert_to(TEXT string, NAME encoding_name) */
+ * BYTEA convert_to(TEXT string, NAME encoding_name)
+ */
Datum
pg_convert_to(PG_FUNCTION_ARGS)
{
Datum
pg_convert_to(PG_FUNCTION_ARGS)
{
* Convert string from encoding encoding_name. The destination
* encoding is the DB encoding.
*
* Convert string from encoding encoding_name. The destination
* encoding is the DB encoding.
*
- * TEXT convert_from(BYTEA string, NAME encoding_name) */
+ * TEXT convert_from(BYTEA string, NAME encoding_name)
+ */
Datum
pg_convert_from(PG_FUNCTION_ARGS)
{
Datum
pg_convert_from(PG_FUNCTION_ARGS)
{
* variable sourceline, integer
* variable source, integer
* variable scontext, integer
* variable sourceline, integer
* variable source, integer
* variable scontext, integer
*/
static void
write_one_nondefault_variable(FILE *fp, struct config_generic *gconf)
*/
static void
write_one_nondefault_variable(FILE *fp, struct config_generic *gconf)
-* Frees allocated memory; memory is removed from its owning context.
-*/
+ * Frees allocated memory; memory is removed from its owning context.
+ */
void
AlignedAllocFree(void *pointer)
{
void
AlignedAllocFree(void *pointer)
{
/*
* Post-abort cleanup for portals.
*
/*
* Post-abort cleanup for portals.
*
- * Delete all portals not held over from prior transactions. */
+ * Delete all portals not held over from prior transactions.
+ */
void
AtCleanup_Portals(void)
{
void
AtCleanup_Portals(void)
{
* efficient, but only safe for callers that are prepared to have any
* subsequent manipulation of the tuplesort's state invalidate slot contents.
* For byval Datums, the value of the 'copy' parameter has no effect.
* efficient, but only safe for callers that are prepared to have any
* subsequent manipulation of the tuplesort's state invalidate slot contents.
* For byval Datums, the value of the 'copy' parameter has no effect.
*/
bool
tuplesort_getdatum(Tuplesortstate *state, bool forward, bool copy,
*/
bool
tuplesort_getdatum(Tuplesortstate *state, bool forward, bool copy,
* Like ExecEvalExpr(), but for cases where no return value is expected,
* because the side-effects of expression evaluation are what's desired. This
* is e.g. used for projection and aggregate transition computation.
* Like ExecEvalExpr(), but for cases where no return value is expected,
* because the side-effects of expression evaluation are what's desired. This
* is e.g. used for projection and aggregate transition computation.
* Evaluate expression identified by "state" in the execution context
* given by "econtext".
*
* Evaluate expression identified by "state" in the execution context
* given by "econtext".
*
/*
* Like libpqsrv_connect(), except that this is a wrapper for
* PQconnectdbParams().
/*
* Like libpqsrv_connect(), except that this is a wrapper for
* PQconnectdbParams().
static inline PGconn *
libpqsrv_connect_params(const char *const *keywords,
const char *const *values,
static inline PGconn *
libpqsrv_connect_params(const char *const *keywords,
const char *const *values,