Re: Selecting a constant question

Поиск
Список
Период
Сортировка
От Hannu Krosing
Тема Re: Selecting a constant question
Дата
Msg-id 1181627001.6242.11.camel@hannu-laptop
обсуждение исходный текст
Ответ на Re: Selecting a constant question  ("Larry McGhaw" <lmcghaw@connx.com>)
Ответы Re: Selecting a constant question  ("Dann Corbit" <DCorbit@connx.com>)
Список pgsql-hackers
Ühel kenal päeval, E, 2007-06-11 kell 22:11, kirjutas Larry McGhaw:
> As far as I am aware these statements are true.  If you have a
> specific example you could provide to the contrary that would be
> interesting.
>  
> Even if there are such conditions it does not change the fact that
> libpq and/or postgresql is deficient in this area.
>  
> For any query, the database should be capable of describing the
> metadata for the columns, which includes
> 1) the column type
> and
> 2) the column maximum length.
>  
> This is such a basic database interface principle that I very
> disappointed that someone has not recognized this and simply said "
> yes, we see the issue we will work on it".
>  
> Again, *all* other major relational databases do this ...  even blob
> fields have a maximum length reported from the database.
>  
> I hope someone who truly understands database interfaces will read
> this thread and address the issue.
> For now we will have to "special case" postgres in our application
> until it is addressed.
>  

or redesign your application so that it allocates memory as needed and
won't waste client memory by allocating maximum possible amount for each
and every grid cell weather needed or not ;)

As I understand from this discussion you are writing some kind of
middleware (i.e. tools), and I'd expect toolmakers to do the right
thing.

allocating as much as possibly ever needed is something that would be
excusable in quick-n-dirty end user application, but not in a tool.

----------------
Hannu






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

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: Selecting a constant question
Следующее
От: "Dann Corbit"
Дата:
Сообщение: Re: Selecting a constant question