Re: C based plugins, clocks, locks, and configuration variables - Mailing list pgsql-hackers

From Craig Ringer
Subject Re: C based plugins, clocks, locks, and configuration variables
Date
Msg-id CAMsr+YGQazL2N2d8C1OaQOeO-3wtT_pKi9_aV8u2L0+kKDM9nw@mail.gmail.com
Whole thread Raw
In response to C based plugins, clocks, locks, and configuration variables  (Clifford Hammerschmidt <tanglebones@gmail.com>)
List pgsql-hackers
On 8 November 2016 at 07:41, Clifford Hammerschmidt
<tanglebones@gmail.com> wrote:
> Hi Craig,
>
> Thanks for the pointers; I made a stab at it in:
> https://github.com/tanglebones/pg_tuid
>
> I've no idea if the shmem and lwlock code is correct, or how to test it. It
> seems to work (requires loading via the shared_preload_libraries) on osx in
> that the tuid_ calls work and produce the expected results on my lightly
> loaded development box (not really a good test of shmem or locks in that I
> doubt either are being exercised).

Since that's a public github I took the liberty of replying to the
list. Please reply to the list, not just to me.

Good on you for giving it a go.

For concurrency testing, the isolation tester tool in
src/test/isolation is quite handy. Custom pgbench scripts can also be
useful, though they're really only useful if you can detect an
anomalous situation and Assert to crash the backend in an
--enable-cassert build when there's a problem.

-- Craig Ringer                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Remote DBA, Training
&Services
 



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Remove the comment on the countereffectiveness of large shared_buffers on Windows
Next
From: "Tsunakawa, Takayuki"
Date:
Subject: Re: Re: BUG #13755: pgwin32_is_service not checking if SECURITY_SERVICE_SID is disabled