Re: Use Postgres as a column store by creating one table per column

2019-05-24 Thread Mark Kirkwood
On 22/05/19 4:28 PM, Lev Kokotov wrote: Is it efficient to use Postgres as a column store by creating one table per column? I would query it with something like `[...] UNION SELECT value AS FROM WHERE value = UNION [...]` to build a row. I'm thinking since Postgres stores tabl

Re: Use Postgres as a column store by creating one table per column

2019-05-24 Thread Stephen Frost
Greetings, * Lev Kokotov (lev.koko...@gmail.com) wrote: > Is it efficient to use Postgres as a column store by creating one table per > column? Short answer is no, not in a traditional arrangement, anyway. The tuple overhead would be extremely painful. It's possible to improve on t

Re: Use Postgres as a column store by creating one table per column

2019-05-24 Thread Tomas Vondra
On Thu, May 23, 2019 at 01:08:42AM -0400, George Neuner wrote: On Tue, 21 May 2019 21:28:07 -0700, Lev Kokotov wrote: Is it efficient to use Postgres as a column store by creating one table per column? I would query it with something like `[...] UNION SELECT value AS FROM WHERE value

Re: Use Postgres as a column store by creating one table per column

2019-05-22 Thread George Neuner
On Tue, 21 May 2019 21:28:07 -0700, Lev Kokotov wrote: >Is it efficient to use Postgres as a column store by creating one table per >column? > >I would query it with something like `[...] UNION SELECT value AS >FROM WHERE value = UNION [...]` to build a row. I think you me

Re: Use Postgres as a column store by creating one table per column

2019-05-21 Thread Justin Pryzby
On Tue, May 21, 2019 at 09:28:07PM -0700, Lev Kokotov wrote: > Is it efficient to use Postgres as a column store by creating one table per > column? > > I would query it with something like `[...] UNION SELECT value AS > FROM WHERE value = UNION [...]` to build a row. I thin

Use Postgres as a column store by creating one table per column

2019-05-21 Thread Lev Kokotov
Is it efficient to use Postgres as a column store by creating one table per column? I would query it with something like `[...] UNION SELECT value AS FROM WHERE value = UNION [...]` to build a row. I'm thinking since Postgres stores tables in continuous blocks of 16MB each (I think that&