Minor refactorings to eliminate some static buffers - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Minor refactorings to eliminate some static buffers
Date
Msg-id 7f86e06a-98c5-4ce3-8ec9-3885c8de0358@iki.fi
Whole thread Raw
Responses Re: Minor refactorings to eliminate some static buffers
List pgsql-hackers
As part of the multithreading work, it'd be nice to get rid of as many 
global or static variables as possible. Remaining ones can be converted 
to thread locals as appropriate, but where possible, it's better to just 
get rid of them.

Here are patches to get rid of a few static variables, by e.g. 
converting them to regular local variables or palloc'd return values, as 
appropriate.

This doesn't move the needle much, but every little helps, and these 
seem like nice little changes in any case.

-- 
Heikki Linnakangas
Neon (https://neon.tech)
Attachment

pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: Remove last traces of HPPA support
Next
From: Matthias van de Meent
Date:
Subject: PG17beta2: SMGR: inconsistent type for nblocks