mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Remove tabs after spaces in C comments
This was not changed in HEAD, but will be done later as part of a pgindent run. Future pgindent runs will also do this. Report by Tom Lane Backpatch through all supported branches, but not HEAD
This commit is contained in:
@@ -44,8 +44,8 @@
|
||||
* each fastpath call as a separate transaction command, and so the
|
||||
* cached data could never actually have been reused. If it had worked
|
||||
* as intended, it would have had problems anyway with dangling references
|
||||
* in the FmgrInfo struct. So, forget about caching and just repeat the
|
||||
* syscache fetches on each usage. They're not *that* expensive.
|
||||
* in the FmgrInfo struct. So, forget about caching and just repeat the
|
||||
* syscache fetches on each usage. They're not *that* expensive.
|
||||
*/
|
||||
struct fp_info
|
||||
{
|
||||
@@ -205,7 +205,7 @@ fetch_fp_info(Oid func_id, struct fp_info * fip)
|
||||
|
||||
/*
|
||||
* Since the validity of this structure is determined by whether the
|
||||
* funcid is OK, we clear the funcid here. It must not be set to the
|
||||
* funcid is OK, we clear the funcid here. It must not be set to the
|
||||
* correct value until we are about to return with a good struct fp_info,
|
||||
* since we can be interrupted (i.e., with an ereport(ERROR, ...)) at any
|
||||
* time. [No longer really an issue since we don't save the struct
|
||||
@@ -257,7 +257,7 @@ fetch_fp_info(Oid func_id, struct fp_info * fip)
|
||||
* RETURNS:
|
||||
* 0 if successful completion, EOF if frontend connection lost.
|
||||
*
|
||||
* Note: All ordinary errors result in ereport(ERROR,...). However,
|
||||
* Note: All ordinary errors result in ereport(ERROR,...). However,
|
||||
* if we lose the frontend connection there is no one to ereport to,
|
||||
* and no use in proceeding...
|
||||
*
|
||||
@@ -526,7 +526,7 @@ parse_fcall_arguments(StringInfo msgBuf, struct fp_info * fip,
|
||||
|
||||
/*
|
||||
* Since stringinfo.c keeps a trailing null in place even for
|
||||
* binary data, the contents of abuf are a valid C string. We
|
||||
* binary data, the contents of abuf are a valid C string. We
|
||||
* have to do encoding conversion before calling the typinput
|
||||
* routine, though.
|
||||
*/
|
||||
|
@@ -452,7 +452,7 @@ SocketBackend(StringInfo inBuf)
|
||||
default:
|
||||
|
||||
/*
|
||||
* Otherwise we got garbage from the frontend. We treat this as
|
||||
* Otherwise we got garbage from the frontend. We treat this as
|
||||
* fatal because we have probably lost message boundary sync, and
|
||||
* there's no good way to recover.
|
||||
*/
|
||||
@@ -854,7 +854,7 @@ exec_simple_query(const char *query_string)
|
||||
ResetUsage();
|
||||
|
||||
/*
|
||||
* Start up a transaction command. All queries generated by the
|
||||
* Start up a transaction command. All queries generated by the
|
||||
* query_string will be in this same command block, *unless* we find a
|
||||
* BEGIN/COMMIT/ABORT statement; we have to force a new xact command after
|
||||
* one of those, else bad things will happen in xact.c. (Note that this
|
||||
@@ -863,7 +863,7 @@ exec_simple_query(const char *query_string)
|
||||
start_xact_command();
|
||||
|
||||
/*
|
||||
* Zap any pre-existing unnamed statement. (While not strictly necessary,
|
||||
* Zap any pre-existing unnamed statement. (While not strictly necessary,
|
||||
* it seems best to define simple-Query mode as if it used the unnamed
|
||||
* statement and portal; this ensures we recover any storage used by prior
|
||||
* unnamed operations.)
|
||||
@@ -922,7 +922,7 @@ exec_simple_query(const char *query_string)
|
||||
|
||||
/*
|
||||
* Get the command name for use in status display (it also becomes the
|
||||
* default completion tag, down inside PortalRun). Set ps_status and
|
||||
* default completion tag, down inside PortalRun). Set ps_status and
|
||||
* do any special start-of-SQL-command processing needed by the
|
||||
* destination.
|
||||
*/
|
||||
@@ -1010,7 +1010,7 @@ exec_simple_query(const char *query_string)
|
||||
|
||||
/*
|
||||
* Select the appropriate output format: text unless we are doing a
|
||||
* FETCH from a binary cursor. (Pretty grotty to have to do this here
|
||||
* FETCH from a binary cursor. (Pretty grotty to have to do this here
|
||||
* --- but it avoids grottiness in other places. Ah, the joys of
|
||||
* backward compatibility...)
|
||||
*/
|
||||
@@ -1311,7 +1311,7 @@ exec_parse_message(const char *query_string, /* string to execute */
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Empty input string. This is legal. */
|
||||
/* Empty input string. This is legal. */
|
||||
raw_parse_tree = NULL;
|
||||
commandTag = NULL;
|
||||
psrc = CreateCachedPlan(raw_parse_tree, query_string, commandTag);
|
||||
@@ -1361,7 +1361,7 @@ exec_parse_message(const char *query_string, /* string to execute */
|
||||
|
||||
/*
|
||||
* We do NOT close the open transaction command here; that only happens
|
||||
* when the client sends Sync. Instead, do CommandCounterIncrement just
|
||||
* when the client sends Sync. Instead, do CommandCounterIncrement just
|
||||
* in case something happened during parse/plan.
|
||||
*/
|
||||
CommandCounterIncrement();
|
||||
@@ -1503,7 +1503,7 @@ exec_bind_message(StringInfo input_message)
|
||||
* If we are in aborted transaction state, the only portals we can
|
||||
* actually run are those containing COMMIT or ROLLBACK commands. We
|
||||
* disallow binding anything else to avoid problems with infrastructure
|
||||
* that expects to run inside a valid transaction. We also disallow
|
||||
* that expects to run inside a valid transaction. We also disallow
|
||||
* binding any parameters, since we can't risk calling user-defined I/O
|
||||
* functions.
|
||||
*/
|
||||
@@ -1592,7 +1592,7 @@ exec_bind_message(StringInfo input_message)
|
||||
/*
|
||||
* Rather than copying data around, we just set up a phony
|
||||
* StringInfo pointing to the correct portion of the message
|
||||
* buffer. We assume we can scribble on the message buffer so
|
||||
* buffer. We assume we can scribble on the message buffer so
|
||||
* as to maintain the convention that StringInfos have a
|
||||
* trailing null. This is grotty but is a big win when
|
||||
* dealing with very large parameter strings.
|
||||
@@ -1942,7 +1942,7 @@ exec_execute_message(const char *portal_name, long max_rows)
|
||||
if (is_xact_command)
|
||||
{
|
||||
/*
|
||||
* If this was a transaction control statement, commit it. We
|
||||
* If this was a transaction control statement, commit it. We
|
||||
* will start a new xact command for the next command (if any).
|
||||
*/
|
||||
finish_xact_command();
|
||||
@@ -2348,7 +2348,7 @@ exec_describe_portal_message(const char *portal_name)
|
||||
/*
|
||||
* If we are in aborted transaction state, we can't run
|
||||
* SendRowDescriptionMessage(), because that needs catalog accesses.
|
||||
* Hence, refuse to Describe portals that return data. (We shouldn't just
|
||||
* Hence, refuse to Describe portals that return data. (We shouldn't just
|
||||
* refuse all Describes, since that might break the ability of some
|
||||
* clients to issue COMMIT or ROLLBACK commands, if they use code that
|
||||
* blindly Describes whatever it does.)
|
||||
@@ -2565,7 +2565,7 @@ quickdie(SIGNAL_ARGS)
|
||||
on_exit_reset();
|
||||
|
||||
/*
|
||||
* Note we do exit(2) not exit(0). This is to force the postmaster into a
|
||||
* Note we do exit(2) not exit(0). This is to force the postmaster into a
|
||||
* system reset cycle if some idiot DBA sends a manual SIGQUIT to a random
|
||||
* backend. This is necessary precisely because we don't clean up our
|
||||
* shared memory state. (The "dead man switch" mechanism in pmsignal.c
|
||||
@@ -3294,7 +3294,7 @@ process_postgres_switches(int argc, char *argv[], GucContext ctx,
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Parse command-line options. CAUTION: keep this in sync with
|
||||
* Parse command-line options. CAUTION: keep this in sync with
|
||||
* postmaster/postmaster.c (the option sets should not conflict) and with
|
||||
* the common help() function in main/main.c.
|
||||
*/
|
||||
@@ -3597,7 +3597,7 @@ PostgresMain(int argc, char *argv[],
|
||||
* we have set up the handler.
|
||||
*
|
||||
* Also note: it's best not to use any signals that are SIG_IGNored in the
|
||||
* postmaster. If such a signal arrives before we are able to change the
|
||||
* postmaster. If such a signal arrives before we are able to change the
|
||||
* handler to non-SIG_IGN, it'll get dropped. Instead, make a dummy
|
||||
* handler in the postmaster to reserve the signal. (Of course, this isn't
|
||||
* an issue for signals that are locally generated, such as SIGALRM and
|
||||
@@ -3803,7 +3803,7 @@ PostgresMain(int argc, char *argv[],
|
||||
/*
|
||||
* NOTE: if you are tempted to add more code in this if-block,
|
||||
* consider the high probability that it should be in
|
||||
* AbortTransaction() instead. The only stuff done directly here
|
||||
* AbortTransaction() instead. The only stuff done directly here
|
||||
* should be stuff that is guaranteed to apply *only* for outer-level
|
||||
* error recovery, such as adjusting the FE/BE protocol status.
|
||||
*/
|
||||
@@ -3916,7 +3916,7 @@ PostgresMain(int argc, char *argv[],
|
||||
* collector, and to update the PS stats display. We avoid doing
|
||||
* those every time through the message loop because it'd slow down
|
||||
* processing of batched messages, and because we don't want to report
|
||||
* uncommitted updates (that confuses autovacuum). The notification
|
||||
* uncommitted updates (that confuses autovacuum). The notification
|
||||
* processor wants a call too, if we are not in a transaction block.
|
||||
*/
|
||||
if (send_ready_for_query)
|
||||
|
@@ -558,7 +558,7 @@ PortalStart(Portal portal, ParamListInfo params,
|
||||
|
||||
/*
|
||||
* We don't start the executor until we are told to run the
|
||||
* portal. We do need to set up the result tupdesc.
|
||||
* portal. We do need to set up the result tupdesc.
|
||||
*/
|
||||
{
|
||||
PlannedStmt *pstmt;
|
||||
@@ -908,7 +908,7 @@ PortalRunSelect(Portal portal,
|
||||
Assert(queryDesc || portal->holdStore);
|
||||
|
||||
/*
|
||||
* Force the queryDesc destination to the right thing. This supports
|
||||
* Force the queryDesc destination to the right thing. This supports
|
||||
* MOVE, for example, which will pass in dest = DestNone. This is okay to
|
||||
* change as long as we do it on every fetch. (The Executor must not
|
||||
* assume that dest never changes.)
|
||||
@@ -1156,12 +1156,12 @@ PortalRunUtility(Portal portal, Node *utilityStmt, bool isTopLevel,
|
||||
elog(DEBUG3, "ProcessUtility");
|
||||
|
||||
/*
|
||||
* Set snapshot if utility stmt needs one. Most reliable way to do this
|
||||
* Set snapshot if utility stmt needs one. Most reliable way to do this
|
||||
* seems to be to enumerate those that do not need one; this is a short
|
||||
* list. Transaction control, LOCK, and SET must *not* set a snapshot
|
||||
* since they need to be executable at the start of a transaction-snapshot
|
||||
* mode transaction without freezing a snapshot. By extension we allow
|
||||
* SHOW not to set a snapshot. The other stmts listed are just efficiency
|
||||
* SHOW not to set a snapshot. The other stmts listed are just efficiency
|
||||
* hacks. Beware of listing anything that can modify the database --- if,
|
||||
* say, it has to update an index with expressions that invoke
|
||||
* user-defined functions, then it had better have a snapshot.
|
||||
@@ -1196,7 +1196,7 @@ PortalRunUtility(Portal portal, Node *utilityStmt, bool isTopLevel,
|
||||
|
||||
/*
|
||||
* Some utility commands may pop the ActiveSnapshot stack from under us,
|
||||
* so we only pop the stack if we actually see a snapshot set. Note that
|
||||
* so we only pop the stack if we actually see a snapshot set. Note that
|
||||
* the set of utility commands that do this must be the same set
|
||||
* disallowed to run inside a transaction; otherwise, we could be popping
|
||||
* a snapshot that belongs to some other operation.
|
||||
@@ -1518,7 +1518,7 @@ DoPortalRunFetch(Portal portal,
|
||||
* Definition: Rewind to start, advance count-1 rows, return
|
||||
* next row (if any). In practice, if the goal is less than
|
||||
* halfway back to the start, it's better to scan from where
|
||||
* we are. In any case, we arrange to fetch the target row
|
||||
* we are. In any case, we arrange to fetch the target row
|
||||
* going forwards.
|
||||
*/
|
||||
if (portal->posOverflow || portal->portalPos == LONG_MAX ||
|
||||
@@ -1625,7 +1625,7 @@ DoPortalRunFetch(Portal portal,
|
||||
* If we are sitting on a row, back up one so we can re-fetch it.
|
||||
* If we are not sitting on a row, we still have to start up and
|
||||
* shut down the executor so that the destination is initialized
|
||||
* and shut down correctly; so keep going. To PortalRunSelect,
|
||||
* and shut down correctly; so keep going. To PortalRunSelect,
|
||||
* count == 0 means we will retrieve no row.
|
||||
*/
|
||||
if (on_row)
|
||||
|
@@ -231,7 +231,7 @@ PreventCommandIfReadOnly(const char *cmdname)
|
||||
* PreventCommandDuringRecovery: throw error if RecoveryInProgress
|
||||
*
|
||||
* The majority of operations that are unsafe in a Hot Standby slave
|
||||
* will be rejected by XactReadOnly tests. However there are a few
|
||||
* will be rejected by XactReadOnly tests. However there are a few
|
||||
* commands that are allowed in "read-only" xacts but cannot be allowed
|
||||
* in Hot Standby mode. Those commands should call this function.
|
||||
*/
|
||||
@@ -953,7 +953,7 @@ ProcessUtilitySlow(Node *parsetree,
|
||||
LOCKMODE lockmode;
|
||||
|
||||
/*
|
||||
* Figure out lock mode, and acquire lock. This also does
|
||||
* Figure out lock mode, and acquire lock. This also does
|
||||
* basic permissions checks, so that we won't wait for a
|
||||
* lock on (for example) a relation on which we have no
|
||||
* permissions.
|
||||
|
Reference in New Issue
Block a user