Re: C function question
От
Merlin Moncure
Тема
Re: C function question
Дата
Msg-id
b42b73150902040614vcd3c2e0j321ee3de79f7ba32@mail.gmail.com
Ответ на
Re: C function question (Tom Lane)
Список
Дерево обсуждения
C function question Grzegorz Jaśkiewicz <gryzman@gmail.com>
Re: C function question Grzegorz Jaśkiewicz <gryzman@gmail.com>
Re: C function question Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: C function question Tom Lane <tgl@sss.pgh.pa.us>
Re: C function question Grzegorz Jaśkiewicz <gryzman@gmail.com>
Re: C function question Grzegorz Jaśkiewicz <gryzman@gmail.com>
Re: C function question Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: C function question Tom Lane <tgl@sss.pgh.pa.us>
Re: C function question Grzegorz Jaśkiewicz <gryzman@gmail.com>
Re: C function question Gregory Stark <stark@enterprisedb.com>
Re: C function question Merlin Moncure <mmoncure@gmail.com>
Re: C function question Tom Lane <tgl@sss.pgh.pa.us>
Re: C function question Merlin Moncure <mmoncure@gmail.com>
On Tue, Feb 3, 2009 at 6:16 PM, Tom Lane wrote: > Merlin Moncure writes: >> On Tue, Feb 3, 2009 at 4:28 PM, Tom Lane wrote: >>> You know, maybe we should stop holding our noses and do something about >>> this old gotcha. That type's not going away anytime soon, but could we >>> rename it to char1 or something like that? (With some sort of backward >>> compatibility hack, like a domain named "char".) > >> domains are out, unless arrays of domains are addressed first. > > [ raised eyebrow... ] You've got apps that depend on array of "char"? yes. For example. I wrote a ISAM emulation wrapper for libpq a few years back that supported some cobol applicaitons. char(1) fields are common cobol (and were mapped to "char" for performance), as are arrays of records. since at the time there was no support for arrays of composites or domains, I had to use parallel arrays of POD types when mapping these types of records to PostgreSQL. This would now break. Anyways, why prefer domain to type alias (char1 : "char" :: bigint : int8)? Main advantage of domains is being able to add user level constraints, which is kinda weird for system provided type. merlin
В списке pgsql-general по дате отправления