Re: [HACKERS] cannot cast bpchar and varchar

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема Re: [HACKERS] cannot cast bpchar and varchar
Дата
Msg-id 199902110508.OAA01832@ext16.sra.co.jp
обсуждение исходный текст
Ответ на Re: [HACKERS] cannot cast bpchar and varchar  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Список pgsql-hackers
> >Will look at this. Question: how *should* we compare bpchar and varchar?
> >It may be that we should have some explicit comparison or coersion
> >routines to make things work smoothly.
> 
> Not sure. I will check some SQL books at home.

According to the standard, the result of comparison between a fixed
length char (bpchar) and a variable length char (varchar or text) may
vary depending on an attribute "PAD SPACE" or "NO PAD" of the
COLLATION. Since we do not have COLLATION (yet), we need to have
another way to decide which scheme (PAD SPACE or NO PAD) should be
employed. Possible solution might be:

o decide at compile time. always use one of them at runtime.

o decide at runtime. new set command or an environment variable might be used.

Comments?
---
Tatsuo Ishii


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] interface libpq Makefile.in patch
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: Re: [HACKERS] PostgreSQL and Solaris 7?