On Jul 27, 2005, at 9:53 PM, Tom Lane wrote:
The most common places I've seen unsigned bigint used have been primary keys for tables where the counter is expected to basically grow forever. I've also seen it used to store unique user id numbers instead of varchar fields. In both of those cases, the number is used as a key, either alone or with another field, in an index. Would there be much of a performance hit for that type of use? I can image the biggest performance hit being mathematical calculations, such as sum(), etc. Or would the performance hit be across the board? Greg |
- Re: [GENERAL] [pgsql-advocacy] MySQL to PostgreSQL, was... Gregory Youngblood
- Re: [GENERAL] [pgsql-advocacy] MySQL to PostgreSQL... Tom Lane
- Re: [GENERAL] [pgsql-advocacy] MySQL to PostgreSQL... David Fetter
- Re: [GENERAL] [pgsql-advocacy] MySQL to Postgr... Josh Berkus
- Re: [GENERAL] [pgsql-advocacy] MySQL to Po... Joshua D. Drake
- Re: [GENERAL] [pgsql-advocacy] MySQL to PostgreSQL... Kenneth Marshall
- Re: [GENERAL] [pgsql-advocacy] MySQL to PostgreSQL... Jim C. Nasby
- Re: [GENERAL] [pgsql-advocacy] MySQL to Postgr... Alvaro Herrera
- Re: [GENERAL] [pgsql-advocacy] MySQL to Postgr... Tom Lane
- Re: [GENERAL] [pgsql-advocacy] MySQL to Po... Jim C. Nasby
- Re: [GENERAL] [pgsql-advocacy] MySQL to PostgreSQL... Jim C. Nasby