Re: reducing NUMERIC size for 9.1
От
Hitoshi Harada
Тема
Re: reducing NUMERIC size for 9.1
Дата
Msg-id
AANLkTinnsrHj5EfHKDAhp99o2tb_NJH0rdpb7ez5X4tw@mail.gmail.com
Ответ на
Re: reducing NUMERIC size for 9.1 (Brendan Jurd)
Список
Дерево обсуждения
reducing NUMERIC size for 9.1 Robert Haas <robertmhaas@gmail.com>
Re: reducing NUMERIC size for 9.1 Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing NUMERIC size for 9.1 Robert Haas <robertmhaas@gmail.com>
Re: reducing NUMERIC size for 9.1 Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing NUMERIC size for 9.1 Robert Haas <robertmhaas@gmail.com>
Re: reducing NUMERIC size for 9.1 Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing NUMERIC size for 9.1 Robert Haas <robertmhaas@gmail.com>
Re: reducing NUMERIC size for 9.1 Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing NUMERIC size for 9.1 Robert Haas <robertmhaas@gmail.com>
Re: reducing NUMERIC size for 9.1 Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing NUMERIC size for 9.1 Robert Haas <robertmhaas@gmail.com>
Re: reducing NUMERIC size for 9.1 Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing NUMERIC size for 9.1 Robert Haas <robertmhaas@gmail.com>
Re: reducing NUMERIC size for 9.1 Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing NUMERIC size for 9.1 Robert Haas <robertmhaas@gmail.com>
Re: reducing NUMERIC size for 9.1 Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing NUMERIC size for 9.1 Robert Haas <robertmhaas@gmail.com>
Re: reducing NUMERIC size for 9.1 Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing NUMERIC size for 9.1 Robert Haas <robertmhaas@gmail.com>
Re: reducing NUMERIC size for 9.1 Robert Haas <robertmhaas@gmail.com>
Re: reducing NUMERIC size for 9.1 Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing NUMERIC size for 9.1 Robert Haas <robertmhaas@gmail.com>
Re: reducing NUMERIC size for 9.1 Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing NUMERIC size for 9.1 Robert Haas <robertmhaas@gmail.com>
Re: reducing NUMERIC size for 9.1 Tom Lane <tgl@sss.pgh.pa.us>
Re: reducing NUMERIC size for 9.1 Brendan Jurd <direvus@gmail.com>
Re: reducing NUMERIC size for 9.1 Robert Haas <robertmhaas@gmail.com>
Re: reducing NUMERIC size for 9.1 Brendan Jurd <direvus@gmail.com>
Re: reducing NUMERIC size for 9.1 Richard Huxton <dev@archonet.com>
Re: reducing NUMERIC size for 9.1 Brendan Jurd <direvus@gmail.com>
Re: reducing NUMERIC size for 9.1 Thom Brown <thombrown@gmail.com>
Re: reducing NUMERIC size for 9.1 "David E. Wheeler" <david@kineticode.com>
Re: reducing NUMERIC size for 9.1 Bruce Momjian <bruce@momjian.us>
Re: reducing NUMERIC size for 9.1 "David E. Wheeler" <david@kineticode.com>
Re: reducing NUMERIC size for 9.1 Hitoshi Harada <umi.tanuki@gmail.com>
2010/7/16 Brendan Jurd : > On 16 July 2010 03:47, Robert Haas wrote: >> You might also look at testing with pg_column_size(). >> > > pg_column_size() did return the results I was expecting. > pg_column_size(0::numeric) is 8 bytes on 8.4 and it's 6 bytes on HEAD > with your patch. > > However, even with 1 million rows of 0::numeric in my test table, > there was no difference at all in the on-disk relation size (36290560 > with 36249600 in the table and 32768 in the fsm). > > At this scale we should be seeing around 2 million bytes saved, but > instead the tables are identical. Is there some kind of disconnect in > how the new short numeric is making it to the disk, or perhaps another > effect interfering with my test? What about large ARRAY of numeric type? Once upon a time I develop tinyint for myself, the array size could get reduced. Regards, -- Hitoshi Harada
В списке pgsql-hackers по дате отправления