How do you convert PostgreSQL internal binary field to C datatypes

Поиск
Список
Период
Сортировка
От Jeff Lynn
Тема How do you convert PostgreSQL internal binary field to C datatypes
Дата
Msg-id 465337D6.6080103@rogers.com
обсуждение исходный текст
Ответы Re: How do you convert PostgreSQL internal binary field to C datatypes  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-interfaces
Does someone out there has some example(s) of converting the 
PostgreSQL's internal (network byte order) representation of  float4, 
flost8, date, datetime and timestamp into Win32 float, double, CTime or 
any Win32 date/time construct under Intel x86 h/w architecture?

Andrew McNamara in previous post suggested that there are answers in the 
server source codes.  But for a beginner like me, even though I have 
extensive coding experience in C, C++ and Java, such undertaking for a 
significant product like PostgreSQL is a bit overwhelming for now.

I really do want to explore the usage of PostgreSQL further!  So any 
help will be greatly appreciated. 

Jeff,



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

Предыдущее
От: Jeff Lynn
Дата:
Сообщение: Re: PQgetvalue failed to return column value for non-text data in binary format
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: How do you convert PostgreSQL internal binary field to C datatypes