R: RHEL8 Got error: unknown type name ‘sigjmp_buf’ while compiling C simple code after including pg_type.h

From: "Bonu, Miriam, Sony Music Italy" <miriam(dot)bonu(dot)sme(at)sonymusic(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>, "Marsan, Francesco, Sony Music Italy" <Francesco(dot)Marsan(at)sonymusic(dot)com>, Massimiliano Calcaterra <patesigeo(at)gmail(dot)com>, CAMPAGNOLO Mauro <mauro(dot)campagnolo(at)soprasteria(dot)com>
Subject: R: RHEL8 Got error: unknown type name ‘sigjmp_buf’ while compiling C simple code after including pg_type.h
Date: 2023-03-24 15:01:21
Message-ID: VI1PR0202MB2896A6CC9980BB31AEB9360CA1849@VI1PR0202MB2896.eurprd02.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi Tom

I've just tested your suggestion and it works fine

Thank you very much
Miriam

-----Messaggio originale-----
Da: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Inviato: venerdì 24 marzo 2023 15:51
A: Bonu, Miriam, Sony Music Italy <miriam(dot)bonu(dot)sme(at)sonymusic(dot)com>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org; Marsan, Francesco, Sony Music Italy <Francesco(dot)Marsan(at)sonymusic(dot)com>; Massimiliano Calcaterra <patesigeo(at)gmail(dot)com>; CAMPAGNOLO Mauro <mauro(dot)campagnolo(at)soprasteria(dot)com>
Oggetto: Re: RHEL8 Got error: unknown type name ‘sigjmp_buf’ while compiling C simple code after including pg_type.h

EXTERNAL SENDER

"Bonu, Miriam, Sony Music Italy" <miriam(dot)bonu(dot)sme(at)sonymusic(dot)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

This email originated from outside of Sony Music. Do not click links or open attachments unless you recognize the sender and know the content is safe.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2023-03-24 16:54:42 BUG #17868: Inconsistent collation in PL/pgSQL function parameters can lead to errors
Previous Message Tom Lane 2023-03-24 14:50:56 Re: RHEL8 Got error: unknown type name ‘sigjmp_buf’ while compiling C simple code after including pg_type.h