Add support for Tcl 9

Peter Eisentraut <peter@eisentraut.org>

From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2024-11-15T10:24:04Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Add support for Tcl 9

Attachments

Tcl 9 changed several API functions to take Tcl_Size, which is 
ptrdiff_t, instead of int, for 64-bit enablement.  We have to change a 
few local variables to be compatible with that.  We also provide a 
fallback typedef of Tcl_Size for older Tcl versions.  Here is a patch 
for that.

The affected variables are used for quantities that will not approach
values beyond the range of int (usually number of columns), so this 
doesn't change any functionality, AFAICT.