Neil Conway wrote:
If you do decide to hold the BufMappingLock, it might make
sense to:
1. allocate an array of NBuffers elements
2. acquire BufferMappingLock in share mode
3. sequentially scan through the buffer pool, copying data into the array
4. release the lock
5. on each subsequent call to
This patch moves all the common code that is usually invoked before
doing a fork() into a single function, fork_process(). It is not aware
of the EXEC_BACKEND machinery, so it should be used as fork() currently
is -- inside an #ifndef EXEC_BACKEND block, if appropriate.
I wasn't sure whether
Neil Conway [EMAIL PROTECTED] writes:
This patch moves all the common code that is usually invoked before
doing a fork() into a single function, fork_process(). It is not aware
of the EXEC_BACKEND machinery, so it should be used as fork() currently
is -- inside an #ifndef EXEC_BACKEND
Mark Kirkwood [EMAIL PROTECTED] writes:
In addition to holding the BufMappingLock, each buffer header is (spin)
locked before examining it, hopefully this is correct - BTW, I like the
new buffer lock design.
It'd be possible to dispense with the per-buffer spinlocks so long as
you look only at
Here's a tiny fix for a harmless typo in catalog.c:
Too much space is allocated for tablespace file path, I guess the
directory name used to be pg_tablespaces instead of pg_tblspc at some
point.
- HeikkiIndex: catalog.c
===
RCS
Here's a patch for the TODO item Remove unreferenced table files created by transactions
that were in-progress when the server terminated abruptly.
It adds a new function, CleanupStaleRelFiles, that scans through the data
directory and removes all table files that are not mentioned in pg_class
Heikki Linnakangas [EMAIL PROTECTED] writes:
Here's a patch for the TODO item Remove unreferenced table files created by
transactions
that were in-progress when the server terminated abruptly.
xlog.c is a fairly random place to put that functionality. Didn't it
strike any warning bells for
On Sat, 5 Mar 2005, Tom Lane wrote:
Heikki Linnakangas [EMAIL PROTECTED] writes:
Here's a patch for the TODO item Remove unreferenced table files created by
transactions
that were in-progress when the server terminated abruptly.
xlog.c is a fairly random place to put that functionality. Didn't