diff options
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/libpq/be-fsstubs.c | 4 | ||||
-rw-r--r-- | src/backend/replication/logical/reorderbuffer.c | 2 | ||||
-rw-r--r-- | src/backend/storage/file/fd.c | 2 | ||||
-rw-r--r-- | src/backend/utils/hash/dynahash.c | 14 | ||||
-rw-r--r-- | src/backend/utils/mmgr/freepage.c | 2 |
5 files changed, 12 insertions, 12 deletions
diff --git a/src/backend/libpq/be-fsstubs.c b/src/backend/libpq/be-fsstubs.c index a750f921fa1..b0ece7ec257 100644 --- a/src/backend/libpq/be-fsstubs.c +++ b/src/backend/libpq/be-fsstubs.c @@ -95,7 +95,7 @@ be_lo_open(PG_FUNCTION_ARGS) LargeObjectDesc *lobjDesc; int fd; -#if FSDB +#ifdef FSDB elog(DEBUG4, "lo_open(%u,%d)", lobjId, mode); #endif @@ -118,7 +118,7 @@ be_lo_close(PG_FUNCTION_ARGS) (errcode(ERRCODE_UNDEFINED_OBJECT), errmsg("invalid large-object descriptor: %d", fd))); -#if FSDB +#ifdef FSDB elog(DEBUG4, "lo_close(%d)", fd); #endif diff --git a/src/backend/replication/logical/reorderbuffer.c b/src/backend/replication/logical/reorderbuffer.c index 8ce28ad6297..62e54240ec1 100644 --- a/src/backend/replication/logical/reorderbuffer.c +++ b/src/backend/replication/logical/reorderbuffer.c @@ -3247,7 +3247,7 @@ typedef struct RewriteMappingFile char fname[MAXPGPATH]; } RewriteMappingFile; -#if NOT_USED +#ifdef NOT_USED static void DisplayMapping(HTAB *tuplecid_data) { diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c index 94be62fa6ec..fe2bb8f8596 100644 --- a/src/backend/storage/file/fd.c +++ b/src/backend/storage/file/fd.c @@ -738,7 +738,7 @@ durable_link_or_rename(const char *oldfile, const char *newfile, int elevel) if (fsync_fname_ext(oldfile, false, false, elevel) != 0) return -1; -#if HAVE_WORKING_LINK +#ifdef HAVE_WORKING_LINK if (link(oldfile, newfile) < 0) { ereport(elevel, diff --git a/src/backend/utils/hash/dynahash.c b/src/backend/utils/hash/dynahash.c index 0dfbec8e3ec..de16adef17e 100644 --- a/src/backend/utils/hash/dynahash.c +++ b/src/backend/utils/hash/dynahash.c @@ -243,7 +243,7 @@ struct HTAB */ #define MOD(x,y) ((x) & ((y)-1)) -#if HASH_STATISTICS +#ifdef HASH_STATISTICS static long hash_accesses, hash_collisions, hash_expansions; @@ -706,7 +706,7 @@ init_htab(HTAB *hashp, long nelem) /* Choose number of entries to allocate at a time */ hctl->nelem_alloc = choose_nelem_alloc(hctl->entrysize); -#if HASH_DEBUG +#ifdef HASH_DEBUG fprintf(stderr, "init_htab:\n%s%p\n%s%ld\n%s%ld\n%s%d\n%s%ld\n%s%u\n%s%x\n%s%x\n%s%ld\n", "TABLE POINTER ", hashp, "DIRECTORY SIZE ", hctl->dsize, @@ -832,7 +832,7 @@ hash_destroy(HTAB *hashp) void hash_stats(const char *where, HTAB *hashp) { -#if HASH_STATISTICS +#ifdef HASH_STATISTICS fprintf(stderr, "%s: this HTAB -- accesses %ld collisions %ld\n", where, hashp->hctl->accesses, hashp->hctl->collisions); @@ -933,7 +933,7 @@ hash_search_with_hash_value(HTAB *hashp, HASHBUCKET *prevBucketPtr; HashCompareFunc match; -#if HASH_STATISTICS +#ifdef HASH_STATISTICS hash_accesses++; hctl->accesses++; #endif @@ -988,7 +988,7 @@ hash_search_with_hash_value(HTAB *hashp, break; prevBucketPtr = &(currBucket->link); currBucket = *prevBucketPtr; -#if HASH_STATISTICS +#ifdef HASH_STATISTICS hash_collisions++; hctl->collisions++; #endif @@ -1130,7 +1130,7 @@ hash_update_hash_key(HTAB *hashp, HASHBUCKET *oldPrevPtr; HashCompareFunc match; -#if HASH_STATISTICS +#ifdef HASH_STATISTICS hash_accesses++; hctl->accesses++; #endif @@ -1204,7 +1204,7 @@ hash_update_hash_key(HTAB *hashp, break; prevBucketPtr = &(currBucket->link); currBucket = *prevBucketPtr; -#if HASH_STATISTICS +#ifdef HASH_STATISTICS hash_collisions++; hctl->collisions++; #endif diff --git a/src/backend/utils/mmgr/freepage.c b/src/backend/utils/mmgr/freepage.c index ba3bc20ef17..faf5d10158b 100644 --- a/src/backend/utils/mmgr/freepage.c +++ b/src/backend/utils/mmgr/freepage.c @@ -164,7 +164,7 @@ static void FreePagePushSpanLeader(FreePageManager *fpm, Size first_page, static Size FreePageManagerLargestContiguous(FreePageManager *fpm); static void FreePageManagerUpdateLargest(FreePageManager *fpm); -#if FPM_EXTRA_ASSERTS +#ifdef FPM_EXTRA_ASSERTS static Size sum_free_pages(FreePageManager *fpm); #endif |