Re: Areas for Solaris support modernization

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: "Greg Burd" <greg@burd.me>
Cc: "PostgreSQL Hackers" <pgsql-hackers@lists.postgresql.org>, "Thomas Munro" <thomas.munro@gmail.com>
Date: 2026-03-12T15:07:25Z
Lists: pgsql-hackers
"Greg Burd" <greg@burd.me> writes:
> errfinish+0x288(1008310c9, 70f, 100832730, 100bff148, 100bff208, 0)
> ...
> aclitemout+0xf4(100cfa668, 1, 0, 100cfa10f, 100cfa600, 100cf9960)
> FunctionCall1Coll+0x2c(100cfa120, 0, 100cfa600, 0, 100cfa10f, 7)
> array_out+0x700(2, 0, 100cfa610, 100cfa650, 100cfa638, 0)
> FunctionCall1Coll+0x2c(ffffffff7fffed00, 0, 100cfa5e8, 0, 100bff150, 2ef)
> OidOutputFunctionCall+0x18(2ef, 100cfa5e8, 409, 100c01150, 100, ffffffff7fffed00)
> InsertOneValue+0x2a4(100cfa058, e8, 1009a6f60, 100ccdb84, 40a, 100be5388)

Oh ... you are running it at max debug level, aren't you.
So InsertOneValue tries to print out the inserted value,
and that doesn't work because I didn't hot-wire aclitemout
for bootstrap mode, only aclitemin.

I'm away on vacation, but will fix that when I return.
In the meantime, backing down initdb's debug level to
something less than DEBUG4 should get you past that.

			regards, tom lane



Commits

  1. Switch the semaphore API on Solaris to unnamed POSIX.

  2. Fix aclitemout() to work during early bootstrap.