Re: Querying the schema for column widths - what syntax do I use?
Вложения
В списке pgsql-general по дате отправления:
| От | Martijn van Oosterhout |
|---|---|
| Тема | Re: Querying the schema for column widths - what syntax do I use? |
| Дата | |
| Msg-id | 20080222155836.GF15579@svana.org обсуждение |
| Ответ на | Re: Querying the schema for column widths - what syntax do I use? (Howard Wilkinson <howard@cohtech.com>) |
| Список | pgsql-general |
On Fri, Feb 22, 2008 at 11:38:33AM +0000, Howard Wilkinson wrote: > The package is a DNS server originally hosted on top of a MySQL data > base. I am extending it in a number of ways, but this particular need > arises as I need to store some data (binary in nature) in a field that > is part of the key for an index. The data is < 65536 in length. However, > most of the time it is <<<<<<65536 e.g. 4 bytes. I also need to support > backwards compatibility with the previous releases which had limited > storage capacity in this field. Just remember that if you're going to index the data that a btree index will handle a maximum of 2700 *bytes* which, depending on your encoding might be many less characters. This is independant of the maximum size of the datatype. How you deal with this depends on why exactly you want it indexed. Have a nice day, -- Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/ > Those who make peaceful revolution impossible will make violent revolution inevitable. > -- John F Kennedy
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера