Re: libpq, PQExecParams and the inserting of binary data

Поиск
Список
Период
Сортировка
Искать
От
Daniel Verite
Тема
Re: libpq, PQExecParams and the inserting of binary data
Дата
Msg-id
20050603211559.5392884@localhost
Ответ на
Список
Дерево обсуждения
libpq, PQExecParams and the inserting of binary data David Hinkle <drachs@gmail.com>
Re: libpq, PQExecParams and the inserting of binary data "Daniel Verite" <daniel@manitou-mail.org>
Re: libpq, PQExecParams and the inserting of binary data David Hinkle <drachs@gmail.com>
Re: libpq, PQExecParams and the inserting of binary data "Daniel Verite" <daniel@manitou-mail.org>
Re: libpq, PQExecParams and the inserting of binary data David Hinkle <drachs@gmail.com>
Re: libpq, PQExecParams and the inserting of binary data "Daniel Verite" <daniel@manitou-mail.org>
Re: libpq, PQExecParams and the inserting of binary data Tom Lane <tgl@sss.pgh.pa.us>
Re: libpq, PQExecParams and the inserting of binary data David Hinkle <drachs@gmail.com>
Re: libpq, PQExecParams and the inserting of binary data Tom Lane <tgl@sss.pgh.pa.us>
Re: libpq, PQExecParams and the inserting of binary data Robert Perry <rlperry@lodestonetechnologies.com>
Re: libpq, PQExecParams and the inserting of binary data David Hinkle <drachs@gmail.com>
Re: libpq, PQExecParams and the inserting of binary data Volkan YAZICI <volkan.yazici@gmail.com>
Re: libpq, PQExecParams and the inserting of binary data David Hinkle <drachs@gmail.com>
Re: libpq, PQExecParams and the inserting of binary data Volkan YAZICI <volkan.yazici@gmail.com>
Re: libpq, PQExecParams and the inserting of binary data "Daniel Verite" <daniel@manitou-mail.org>
Re: libpq, PQExecParams and the inserting of binary data Volkan YAZICI <volkan.yazici@gmail.com>
Re: libpq, PQExecParams and the inserting of binary data Tom Lane <tgl@sss.pgh.pa.us>
Re: libpq, PQExecParams and the inserting of binary data Volkan YAZICI <volkan.yazici@gmail.com>
	David Hinkle wrote:

> I will try this.  Out of curiosity, where does the value of 17 for the
> OID field come from?

From the pg_type table:

template1=# select oid from pg_type where typname='bytea';oid 
----- 17
(1 row)

Alternatively, there's the server/catalog/pg_type.h include file
which has #defines for built-in datatypes:

$ grep BYTEA server/catalog/pg_type.h
#define BYTEAOID                17

-- DanielPostgreSQL-powered mail user agent and storage: http://www.manitou-mail.org

В списке pgsql-interfaces по дате отправления
От: Tom Lane
Дата:
От: Daniel Verite
Дата:
FAQ