Re: RHEL8 Got error: iso-8859-1 type name ‘sigjmp_buf’ while compiling C simple code after including pg_type.h - Mailing list pgsql-bugs

From Tom Lane
Subject Re: RHEL8 Got error: iso-8859-1 type name ‘sigjmp_buf’ while compiling C simple code after including pg_type.h
Date
Msg-id 2229108.1679669456@sss.pgh.pa.us
Whole thread Raw
In response to RHEL8 Got error: iso-8859-1 type name ‘sigjmp_buf’ while compiling C simple code after including pg_type.h  ("Bonu, Miriam, Sony Music Italy" <miriam.bonu.sme@sonymusic.com>)
Responses R: RHEL8 Got error: unknown type name ‘sigjmp_buf’ while compiling C simple code after including pg_type.h
List pgsql-bugs
"Bonu, Miriam, Sony Music Italy" <miriam.bonu.sme@sonymusic.com> writes:
> I’m doing some practice with libpq libraries and I need your help to solve an issue that appeared after I tried to
add“pg_type.h” on my source code. 

Don't include pg_type.h.  For client-side code, you want pg_type_d.h
instead.  That won't contain references to server-internal symbols,
but it does contain the type OID macros that I assume you're after.

            regards, tom lane



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #17867: pg_dump intermittently hangs
Next
From: "Bonu, Miriam, Sony Music Italy"
Date:
Subject: R: RHEL8 Got error: unknown type name ‘sigjmp_buf’ while compiling C simple code after including pg_type.h