Re: Minor refactorings to eliminate some static buffers

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Minor refactorings to eliminate some static buffers
Date: 2024-08-06 20:41:45
Message-ID: e9f03291-0b27-46be-81bd-d657fa588232@eisentraut.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 06.08.24 17:13, Heikki Linnakangas wrote:
> --- a/src/backend/access/transam/xlogprefetcher.c
> +++ b/src/backend/access/transam/xlogprefetcher.c
> @@ -362,7 +362,7 @@ XLogPrefetcher *
> XLogPrefetcherAllocate(XLogReaderState *reader)
> {
> XLogPrefetcher *prefetcher;
> - static HASHCTL hash_table_ctl = {
> + const HASHCTL hash_table_ctl = {

Is there a reason this is not changed to

static const HASHCTL ...

? Most other places where changed in that way.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Maciek Sakrejda 2024-08-06 20:53:31 Re: Unused expression indexes
Previous Message Tom Lane 2024-08-06 20:25:12 Re: Unused expression indexes