Re: moving from MySQL to pgsql

Поиск
Список
Период
Сортировка
От Vineet Deodhar
Тема Re: moving from MySQL to pgsql
Дата
Msg-id CAP5=7opV1Z4vYvguJOPP4PHGt8_QZGaqnhe+7bFhto5kw__f6Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: moving from MySQL to pgsql  (Craig Ringer <ringerc@ringerc.id.au>)
Ответы Re: moving from MySQL to pgsql  (Craig Ringer <ringerc@ringerc.id.au>)
Re: moving from MySQL to pgsql  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general
On Thu, Oct 11, 2012 at 1:12 PM, Craig Ringer <ringerc@ringerc.id.au> wrote:
The difference between SMALLINT and BOOLEAN (or TINYINT if Pg supported it) is 1 byte per column. If you had 30 smallint columns and quite a few million rows it might start making a difference, but it's *really* not worth obsessing about. Unless you have high-column-count tables that contain nothing but lots of integers of range 0-255 there's no point caring.

--
Craig Ringer


To give an example, I have tables for storing master records (year master, security master, etc.) for which pkid TINYINT is just sufficient.
These pkid's are used as fk constraints in tables for storing business transactions.
The no. of rows in business transactions tables is in millions.
Here, I NEED to worry about the storage space occupied by the pkid fields.

-- Vineet

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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: auto-increment field : in a simple way
Следующее
От: Vineet Deodhar
Дата:
Сообщение: Re: auto-increment field : in a simple way