Re: pageinspect: Hash index support
От | Peter Eisentraut |
---|---|
Тема | Re: pageinspect: Hash index support |
Дата | |
Msg-id | c982b01c-06bc-485b-5dde-057ee244261a@2ndquadrant.com обсуждение исходный текст |
Ответ на | Re: pageinspect: Hash index support (Jesper Pedersen <jesper.pedersen@redhat.com>) |
Ответы |
Re: pageinspect: Hash index support
Re: pageinspect: Hash index support |
Список | pgsql-hackers |
On 9/26/16 1:39 PM, Jesper Pedersen wrote: > Left as is, since BuildTupleFromCStrings() vs. xyzGetDatum() are equally > readable in this case. But, I can change the patch if needed. The point is that to use BuildTupleFromCStrings() you need to convert numbers to strings, and then they are converted back. This is not a typical way to write row-returning functions. >> - hash_metap result fields spares and mapp should be arrays of integer. > > B-tree and BRIN uses a 'text' field as output, so left as is. These fields are specific to hash, so the precedent doesn't necessarily apply. >> - The data field could be of type bytea. > > Left as is, for same reasons as 'spares' and 'mapp'. Comments from others here? Why not use bytea instead of text? -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления: