mirror of
https://github.com/postgres/postgres.git
synced 2025-08-27 07:42:10 +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:
@@ -81,11 +81,11 @@ typedef struct AclItem
|
||||
/*
|
||||
* Definitions for convenient access to Acl (array of AclItem).
|
||||
* These are standard PostgreSQL arrays, but are restricted to have one
|
||||
* dimension and no nulls. We also ignore the lower bound when reading,
|
||||
* dimension and no nulls. We also ignore the lower bound when reading,
|
||||
* and set it to one when writing.
|
||||
*
|
||||
* CAUTION: as of PostgreSQL 7.1, these arrays are toastable (just like all
|
||||
* other array types). Therefore, be careful to detoast them with the
|
||||
* other array types). Therefore, be careful to detoast them with the
|
||||
* macros provided, unless you know for certain that a particular array
|
||||
* can't have been toasted.
|
||||
*/
|
||||
|
@@ -314,7 +314,7 @@ extern Datum btnamecmp(PG_FUNCTION_ARGS);
|
||||
extern Datum bttextcmp(PG_FUNCTION_ARGS);
|
||||
|
||||
/*
|
||||
* Per-opclass sort support functions for new btrees. Like the
|
||||
* Per-opclass sort support functions for new btrees. Like the
|
||||
* functions above, these are stored in pg_amproc; most are defined in
|
||||
* access/nbtree/nbtcompare.c
|
||||
*/
|
||||
|
@@ -78,13 +78,13 @@ typedef struct catctup
|
||||
|
||||
/*
|
||||
* Each tuple in a cache is a member of a dlist that stores the elements
|
||||
* of its hash bucket. We keep each dlist in LRU order to speed repeated
|
||||
* of its hash bucket. We keep each dlist in LRU order to speed repeated
|
||||
* lookups.
|
||||
*/
|
||||
dlist_node cache_elem; /* list member of per-bucket list */
|
||||
|
||||
/*
|
||||
* The tuple may also be a member of at most one CatCList. (If a single
|
||||
* The tuple may also be a member of at most one CatCList. (If a single
|
||||
* catcache is list-searched with varying numbers of keys, we may have to
|
||||
* make multiple entries for the same tuple because of this restriction.
|
||||
* Currently, that's not expected to be common, so we accept the potential
|
||||
@@ -101,7 +101,7 @@ typedef struct catctup
|
||||
*
|
||||
* A negative cache entry is an assertion that there is no tuple matching
|
||||
* a particular key. This is just as useful as a normal entry so far as
|
||||
* avoiding catalog searches is concerned. Management of positive and
|
||||
* avoiding catalog searches is concerned. Management of positive and
|
||||
* negative entries is identical.
|
||||
*/
|
||||
int refcount; /* number of active references */
|
||||
@@ -120,7 +120,7 @@ typedef struct catclist
|
||||
|
||||
/*
|
||||
* A CatCList describes the result of a partial search, ie, a search using
|
||||
* only the first K key columns of an N-key cache. We form the keys used
|
||||
* only the first K key columns of an N-key cache. We form the keys used
|
||||
* into a tuple (with other attributes NULL) to represent the stored key
|
||||
* set. The CatCList object contains links to cache entries for all the
|
||||
* table rows satisfying the partial key. (Note: none of these will be
|
||||
|
@@ -259,7 +259,7 @@ extern const int day_tab[2][13];
|
||||
|
||||
/*
|
||||
* Datetime input parsing routines (ParseDateTime, DecodeDateTime, etc)
|
||||
* return zero or a positive value on success. On failure, they return
|
||||
* return zero or a positive value on success. On failure, they return
|
||||
* one of these negative code values. DateTimeParseError may be used to
|
||||
* produce a correct ereport.
|
||||
*/
|
||||
|
@@ -89,13 +89,13 @@
|
||||
* ... other errxxx() fields as needed ...));
|
||||
*
|
||||
* The error level is required, and so is a primary error message (errmsg
|
||||
* or errmsg_internal). All else is optional. errcode() defaults to
|
||||
* or errmsg_internal). All else is optional. errcode() defaults to
|
||||
* ERRCODE_INTERNAL_ERROR if elevel is ERROR or more, ERRCODE_WARNING
|
||||
* if elevel is WARNING, or ERRCODE_SUCCESSFUL_COMPLETION if elevel is
|
||||
* NOTICE or below.
|
||||
*
|
||||
* ereport_domain() allows a message domain to be specified, for modules that
|
||||
* wish to use a different message catalog from the backend's. To avoid having
|
||||
* wish to use a different message catalog from the backend's. To avoid having
|
||||
* one copy of the default text domain per .o file, we define it as NULL here
|
||||
* and have errstart insert the default text domain. Modules can either use
|
||||
* ereport_domain() directly, or preferably they can override the TEXTDOMAIN
|
||||
|
@@ -40,7 +40,7 @@
|
||||
* configuration file, or by client request in the connection startup
|
||||
* packet (e.g., from libpq's PGOPTIONS variable). Furthermore, an
|
||||
* already-started backend will ignore changes to such an option in the
|
||||
* configuration file. The idea is that these options are fixed for a
|
||||
* configuration file. The idea is that these options are fixed for a
|
||||
* given backend once it's started, but they can vary across backends.
|
||||
*
|
||||
* SUSET options can be set at postmaster startup, with the SIGHUP
|
||||
@@ -74,7 +74,7 @@ typedef enum
|
||||
*
|
||||
* PGC_S_TEST is used when testing values to be stored as per-database or
|
||||
* per-user defaults ("doit" will always be false, so this never gets stored
|
||||
* as the actual source of any value). This is an interactive case, but
|
||||
* as the actual source of any value). This is an interactive case, but
|
||||
* it needs its own source value because some assign hooks need to make
|
||||
* different validity checks in this case.
|
||||
*
|
||||
|
@@ -30,7 +30,7 @@ typedef int (*HashCompareFunc) (const void *key1, const void *key2,
|
||||
Size keysize);
|
||||
|
||||
/*
|
||||
* Key copying functions must have this signature. The return value is not
|
||||
* Key copying functions must have this signature. The return value is not
|
||||
* used. (The definition is set up to allow memcpy() and strncpy() to be
|
||||
* used directly.)
|
||||
*/
|
||||
|
@@ -40,7 +40,7 @@ typedef struct
|
||||
/*
|
||||
* Both INET and CIDR addresses are represented within Postgres as varlena
|
||||
* objects, ie, there is a varlena header in front of the struct type
|
||||
* depicted above. This struct depicts what we actually have in memory
|
||||
* depicted above. This struct depicts what we actually have in memory
|
||||
* in "uncompressed" cases. Note that since the maximum data size is only
|
||||
* 18 bytes, INET/CIDR will invariably be stored into tuples using the
|
||||
* 1-byte-header varlena format. However, we have to be prepared to cope
|
||||
|
@@ -30,7 +30,7 @@
|
||||
* be summarily denied.
|
||||
*
|
||||
* XXX This is deliberately chosen to correspond to the limiting size
|
||||
* of varlena objects under TOAST. See VARSIZE_4B() and related macros
|
||||
* of varlena objects under TOAST. See VARSIZE_4B() and related macros
|
||||
* in postgres.h. Many datatypes assume that any allocatable size can
|
||||
* be represented in a varlena header.
|
||||
*
|
||||
@@ -45,8 +45,8 @@
|
||||
* All chunks allocated by any memory context manager are required to be
|
||||
* preceded by a StandardChunkHeader at a spacing of STANDARDCHUNKHEADERSIZE.
|
||||
* A currently-allocated chunk must contain a backpointer to its owning
|
||||
* context as well as the allocated size of the chunk. The backpointer is
|
||||
* used by pfree() and repalloc() to find the context to call. The allocated
|
||||
* context as well as the allocated size of the chunk. The backpointer is
|
||||
* used by pfree() and repalloc() to find the context to call. The allocated
|
||||
* size is not absolutely essential, but it's expected to be needed by any
|
||||
* reasonable implementation.
|
||||
*/
|
||||
|
@@ -6,9 +6,9 @@
|
||||
* This file contains the basic memory allocation interface that is
|
||||
* needed by almost every backend module. It is included directly by
|
||||
* postgres.h, so the definitions here are automatically available
|
||||
* everywhere. Keep it lean!
|
||||
* everywhere. Keep it lean!
|
||||
*
|
||||
* Memory allocation occurs within "contexts". Every chunk obtained from
|
||||
* Memory allocation occurs within "contexts". Every chunk obtained from
|
||||
* palloc()/MemoryContextAlloc() is allocated within a specific context.
|
||||
* The entire contents of a context can be freed easily and quickly by
|
||||
* resetting or deleting the context --- this is both faster and less
|
||||
@@ -29,7 +29,7 @@
|
||||
#define PALLOC_H
|
||||
|
||||
/*
|
||||
* Type MemoryContextData is declared in nodes/memnodes.h. Most users
|
||||
* Type MemoryContextData is declared in nodes/memnodes.h. Most users
|
||||
* of memory allocation should just treat it as an abstract type, so we
|
||||
* do not provide the struct contents here.
|
||||
*/
|
||||
|
@@ -72,7 +72,7 @@ extern CRCDLLIMPORT const uint32 pg_crc32_table[];
|
||||
/*
|
||||
* crc0 represents the LSBs of the 64-bit value, crc1 the MSBs. Note that
|
||||
* with crc0 placed first, the output of 32-bit and 64-bit implementations
|
||||
* will be bit-compatible only on little-endian architectures. If it were
|
||||
* will be bit-compatible only on little-endian architectures. If it were
|
||||
* important to make the two possible implementations bit-compatible on
|
||||
* all machines, we could do a configure test to decide how to order the
|
||||
* two fields, but it seems not worth the trouble.
|
||||
|
@@ -30,7 +30,7 @@
|
||||
* the analyzed-and-rewritten query tree, and rebuild it when next needed.
|
||||
*
|
||||
* An actual execution plan, represented by CachedPlan, is derived from the
|
||||
* CachedPlanSource when we need to execute the query. The plan could be
|
||||
* CachedPlanSource when we need to execute the query. The plan could be
|
||||
* either generic (usable with any set of plan parameters) or custom (for a
|
||||
* specific set of parameters). plancache.c contains the logic that decides
|
||||
* which way to do it for any particular execution. If we are using a generic
|
||||
@@ -61,15 +61,15 @@
|
||||
* allows the query tree to be discarded easily when it is invalidated.
|
||||
*
|
||||
* Some callers wish to use the CachedPlan API even with one-shot queries
|
||||
* that have no reason to be saved at all. We therefore support a "oneshot"
|
||||
* variant that does no data copying or invalidation checking. In this case
|
||||
* that have no reason to be saved at all. We therefore support a "oneshot"
|
||||
* variant that does no data copying or invalidation checking. In this case
|
||||
* there are no separate memory contexts: the CachedPlanSource struct and
|
||||
* all subsidiary data live in the caller's CurrentMemoryContext, and there
|
||||
* is no way to free memory short of clearing that entire context. A oneshot
|
||||
* is no way to free memory short of clearing that entire context. A oneshot
|
||||
* plan is always treated as unsaved.
|
||||
*
|
||||
* Note: the string referenced by commandTag is not subsidiary storage;
|
||||
* it is assumed to be a compile-time-constant string. As with portals,
|
||||
* it is assumed to be a compile-time-constant string. As with portals,
|
||||
* commandTag shall be NULL if and only if the original query string (before
|
||||
* rewriting) was an empty string.
|
||||
*/
|
||||
@@ -114,7 +114,7 @@ typedef struct CachedPlanSource
|
||||
* CachedPlan represents an execution plan derived from a CachedPlanSource.
|
||||
* The reference count includes both the link from the parent CachedPlanSource
|
||||
* (if any), and any active plan executions, so the plan can be discarded
|
||||
* exactly when refcount goes to zero. Both the struct itself and the
|
||||
* exactly when refcount goes to zero. Both the struct itself and the
|
||||
* subsidiary data live in the context denoted by the context field.
|
||||
* This makes it easy to free a no-longer-needed cached plan. (However,
|
||||
* if is_oneshot is true, the context does not belong solely to the CachedPlan
|
||||
|
@@ -58,8 +58,8 @@
|
||||
* single result from the user's viewpoint. However, the rule rewriter
|
||||
* may expand the single source query to zero or many actual queries.)
|
||||
*
|
||||
* PORTAL_ONE_SELECT: the portal contains one single SELECT query. We run
|
||||
* the Executor incrementally as results are demanded. This strategy also
|
||||
* PORTAL_ONE_SELECT: the portal contains one single SELECT query. We run
|
||||
* the Executor incrementally as results are demanded. This strategy also
|
||||
* supports holdable cursors (the Executor results can be dumped into a
|
||||
* tuplestore for access after transaction completion).
|
||||
*
|
||||
@@ -73,7 +73,7 @@
|
||||
* all the auxiliary queries.)
|
||||
*
|
||||
* PORTAL_ONE_MOD_WITH: the portal contains one single SELECT query, but
|
||||
* it has data-modifying CTEs. This is currently treated the same as the
|
||||
* it has data-modifying CTEs. This is currently treated the same as the
|
||||
* PORTAL_ONE_RETURNING case because of the possibility of needing to fire
|
||||
* triggers. It may act more like PORTAL_ONE_SELECT in future.
|
||||
*
|
||||
|
@@ -134,7 +134,7 @@ typedef struct RelationData
|
||||
* Note: rd_amcache is available for index AMs to cache private data about
|
||||
* an index. This must be just a cache since it may get reset at any time
|
||||
* (in particular, it will get reset by a relcache inval message for the
|
||||
* index). If used, it must point to a single memory chunk palloc'd in
|
||||
* index). If used, it must point to a single memory chunk palloc'd in
|
||||
* rd_indexcxt. A relcache reset will include freeing that chunk and
|
||||
* setting rd_amcache = NULL.
|
||||
*/
|
||||
@@ -157,7 +157,7 @@ typedef struct RelationData
|
||||
* foreign-table support
|
||||
*
|
||||
* rd_fdwroutine must point to a single memory chunk palloc'd in
|
||||
* CacheMemoryContext. It will be freed and reset to NULL on a relcache
|
||||
* CacheMemoryContext. It will be freed and reset to NULL on a relcache
|
||||
* reset.
|
||||
*/
|
||||
|
||||
@@ -361,7 +361,7 @@ typedef struct StdRdOptions
|
||||
* RelationGetTargetBlock
|
||||
* Fetch relation's current insertion target block.
|
||||
*
|
||||
* Returns InvalidBlockNumber if there is no current target block. Note
|
||||
* Returns InvalidBlockNumber if there is no current target block. Note
|
||||
* that the target block status is discarded on any smgr-level invalidation.
|
||||
*/
|
||||
#define RelationGetTargetBlock(relation) \
|
||||
|
@@ -23,7 +23,7 @@ typedef struct RelationData *Relation;
|
||||
/* ----------------
|
||||
* RelationPtr is used in the executor to support index scans
|
||||
* where we have to keep track of several index relations in an
|
||||
* array. -cim 9/10/89
|
||||
* array. -cim 9/10/89
|
||||
* ----------------
|
||||
*/
|
||||
typedef Relation *RelationPtr;
|
||||
|
@@ -36,7 +36,7 @@ extern PGDLLIMPORT ResourceOwner TopTransactionResourceOwner;
|
||||
|
||||
/*
|
||||
* Resource releasing is done in three phases: pre-locks, locks, and
|
||||
* post-locks. The pre-lock phase must release any resources that are
|
||||
* post-locks. The pre-lock phase must release any resources that are
|
||||
* visible to other backends (such as pinned buffers); this ensures that
|
||||
* when we release a lock that another backend may be waiting on, it will
|
||||
* see us as being fully out of our transaction. The post-lock phase
|
||||
|
@@ -23,7 +23,7 @@
|
||||
/*
|
||||
* Note: the default selectivity estimates are not chosen entirely at random.
|
||||
* We want them to be small enough to ensure that indexscans will be used if
|
||||
* available, for typical table densities of ~100 tuples/page. Thus, for
|
||||
* available, for typical table densities of ~100 tuples/page. Thus, for
|
||||
* example, 0.01 is not quite small enough, since that makes it appear that
|
||||
* nearly all pages will be hit anyway. Also, since we sometimes estimate
|
||||
* eqsel as 1/num_distinct, we probably want DEFAULT_NUM_DISTINCT to equal
|
||||
|
@@ -33,7 +33,7 @@
|
||||
*
|
||||
* Note: since pg_amproc functions are indexed by (lefttype, righttype)
|
||||
* it is possible to associate a BTSORTSUPPORT function with a cross-type
|
||||
* comparison. This could sensibly be used to provide a fast comparator
|
||||
* comparison. This could sensibly be used to provide a fast comparator
|
||||
* function for such cases, but probably not any other acceleration method.
|
||||
*
|
||||
*
|
||||
|
@@ -3,7 +3,7 @@
|
||||
* tqual.h
|
||||
* POSTGRES "time qualification" definitions, ie, tuple visibility rules.
|
||||
*
|
||||
* Should be moved/renamed... - vadim 07/28/98
|
||||
* Should be moved/renamed... - vadim 07/28/98
|
||||
*
|
||||
* Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
|
@@ -6,7 +6,7 @@
|
||||
* This module handles sorting of heap tuples, index tuples, or single
|
||||
* Datums (and could easily support other kinds of sortable objects,
|
||||
* if necessary). It works efficiently for both small and large amounts
|
||||
* of data. Small amounts are sorted in-memory using qsort(). Large
|
||||
* of data. Small amounts are sorted in-memory using qsort(). Large
|
||||
* amounts are sorted using temporary files and a standard external sort
|
||||
* algorithm.
|
||||
*
|
||||
@@ -41,9 +41,9 @@ typedef struct Tuplesortstate Tuplesortstate;
|
||||
* The "heap" API actually stores/sorts MinimalTuples, which means it doesn't
|
||||
* preserve the system columns (tuple identity and transaction visibility
|
||||
* info). The sort keys are specified by column numbers within the tuples
|
||||
* and sort operator OIDs. We save some cycles by passing and returning the
|
||||
* and sort operator OIDs. We save some cycles by passing and returning the
|
||||
* tuples in TupleTableSlots, rather than forming actual HeapTuples (which'd
|
||||
* have to be converted to MinimalTuples). This API works well for sorts
|
||||
* have to be converted to MinimalTuples). This API works well for sorts
|
||||
* executed as parts of plan trees.
|
||||
*
|
||||
* The "cluster" API stores/sorts full HeapTuples including all visibility
|
||||
@@ -52,7 +52,7 @@ typedef struct Tuplesortstate Tuplesortstate;
|
||||
* go with this API, not the "begin_heap" one!
|
||||
*
|
||||
* The "index_btree" API stores/sorts IndexTuples (preserving all their
|
||||
* header fields). The sort keys are specified by a btree index definition.
|
||||
* header fields). The sort keys are specified by a btree index definition.
|
||||
*
|
||||
* The "index_hash" API is similar to index_btree, but the tuples are
|
||||
* actually sorted by their hash codes not the raw data.
|
||||
|
@@ -8,7 +8,7 @@
|
||||
* a dumbed-down version of tuplesort.c; it does no sorting of tuples
|
||||
* but can only store and regurgitate a sequence of tuples. However,
|
||||
* because no sort is required, it is allowed to start reading the sequence
|
||||
* before it has all been written. This is particularly useful for cursors,
|
||||
* before it has all been written. This is particularly useful for cursors,
|
||||
* because it allows random access within the already-scanned portion of
|
||||
* a query without having to process the underlying scan to completion.
|
||||
* Also, it is possible to support multiple independent read pointers.
|
||||
|
@@ -56,7 +56,7 @@ typedef struct TypeCacheEntry
|
||||
|
||||
/*
|
||||
* Pre-set-up fmgr call info for the equality operator, the btree
|
||||
* comparison function, and the hash calculation function. These are kept
|
||||
* comparison function, and the hash calculation function. These are kept
|
||||
* in the type cache to avoid problems with memory leaks in repeated calls
|
||||
* to functions such as array_eq, array_cmp, hash_array. There is not
|
||||
* currently a need to maintain call info for the lt_opr or gt_opr.
|
||||
@@ -73,7 +73,7 @@ typedef struct TypeCacheEntry
|
||||
TupleDesc tupDesc;
|
||||
|
||||
/*
|
||||
* Fields computed when TYPECACHE_RANGE_INFO is requested. Zeroes if not
|
||||
* Fields computed when TYPECACHE_RANGE_INFO is requested. Zeroes if not
|
||||
* a range type or information hasn't yet been requested. Note that
|
||||
* rng_cmp_proc_finfo could be different from the element type's default
|
||||
* btree comparison function.
|
||||
@@ -88,7 +88,7 @@ typedef struct TypeCacheEntry
|
||||
int flags; /* flags about what we've computed */
|
||||
|
||||
/*
|
||||
* Private information about an enum type. NULL if not enum or
|
||||
* Private information about an enum type. NULL if not enum or
|
||||
* information hasn't been requested.
|
||||
*/
|
||||
struct TypeCacheEnumData *enumData;
|
||||
|
Reference in New Issue
Block a user