Re: Trouble including pg_type.h

Поиск
Список
Период
Сортировка
От Vilches, Alejandro
Тема Re: Trouble including pg_type.h
Дата
Msg-id 9CE034E149417949A58AA9A4FA7E1C5584B0CD9B@ORSMSX109.amr.corp.intel.com
обсуждение исходный текст
Ответ на Re: Trouble including pg_type.h  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Ответы Re: Trouble including pg_type.h  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Trouble including pg_type.h  (Michael Wood <esiotrot@gmail.com>)
Список pgsql-novice
Hi Laurenz,

Thanks for your help!

Actually, my apologies, the information previously provided was not quite accurate.  We're using Ubuntu and it seems
likethe "pg_type.h" header file is not included in the Postgres development package for Ubuntu (we're using Postgres
9.3). So we obtained the source and started copying some header files to try to build and we weren't copying all the
rightfiles.  Now we've solved the issue.
 

However, I was also wondering:
Is using "pg_type.h" in client programs (to get OID info for a result set) a supported use case?  Is there a reason why
it'snot included in the Postgres development package for Ubuntu?
 

Thanks!
Alejandro

-----Original Message-----
From: Albe Laurenz [mailto:laurenz.albe@wien.gv.at] 
Sent: Friday, September 4, 2015 2:50 AM
To: Vilches, Alejandro; pgsql-novice@postgresql.org
Subject: RE: Trouble including pg_type.h

Alejandro Vilches wrote:
> I’m having issues trying to include <catalog/pg_type.h> in my program.  
> With the include paths correctly set, the compiler is able to find 
> this file, but the issue is that this file is doing #include 
> “catalog/genbki.h” (even though they’re side by side), so the compiler is trying to look for
“catalog/catalog/genbki.h”.
> 
> For me, “pg_type.h” is located in: 
> “/usr/pgsql-9.3/include/server/catalog”.  So besides adding 
> “/usr/pgsql-9.3/include” to the include path, I’ve also added “/usr/pgsql-9.3/include/server”, and in my program I’m
doing#include <catalog/pg_type.h>.
 

Try

#include "catalog/pg_type.h"

What compiler on what platform are you using?

Yours,
Laurenz Albe

В списке pgsql-novice по дате отправления:

Предыдущее
От: "Armand Pirvu (gmail)"
Дата:
Сообщение: Re: shared_preload_libraries and pg_stat_statements
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Trouble including pg_type.h