| От | Martijn van Oosterhout |
|---|---|
| Тема | Re: troubles with postgresql |
| Дата | |
| Msg-id | 20030223093438.GB6548@svana.org обсуждение исходный текст |
| Ответ на | troubles with postgresql ("erwan ancel" <erwan.ancel@free.fr>) |
| Список | pgsql-general |
On Sun, Feb 23, 2003 at 09:22:44AM +0100, erwan ancel wrote: > Hi, > There are 2 things that disturb me in postgresql: > - apparently, there is no unsigned number type. why ??? This is very useful, > especially for serials. Since serial go upto 64 bits, I don't think signed/unsigned will make a difference. > - when we get a record containing a fixed sized string rows, we always get a > string that is filled with spaces at the end to match max size. Again, why ? > There is no need for these spaces, and I guess those spaces are sent through > the network, which is not optimal... You probably defined them char(n). varchar(n) has no padding. text has no limit in size. Choose the appropriate type for your purposes. Hope this helps, -- Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/ > Support bacteria! They're the only culture some people have.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера