Re: TABLESAMPLE patch

From: Petr Jelinek <petr(at)2ndquadrant(dot)com>
To: Jaime Casanova <jaime(at)2ndquadrant(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: TABLESAMPLE patch
Date: 2014-12-16 08:31:04
Message-ID: 548FEDC8.4040705@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 16/12/14 08:43, Jaime Casanova wrote:
> On Wed, Dec 10, 2014 at 6:24 PM, Petr Jelinek <petr(at)2ndquadrant(dot)com> wrote:
>> Hello,
>>
>> Attached is a basic implementation of TABLESAMPLE clause. It's SQL standard
>> clause and couple of people tried to submit it before so I think I don't
>> need to explain in length what it does - basically returns "random" sample
>> of a table using a specified sampling method.
>>
>
> Tablesample, yay!
>
> Sadly when the jsonb functions patch was committed a few oids where
> used, so you should update the ones you are using. at least to make
> the patch easier for testing.

Will do.

>
> The test added for this failed, attached is the diff. i didn't looked
> up why it failed
>

It isn't immediately obvious to me why, will look into it.

> Finally, i created a view with a tablesample clause. i used the view
> and the tablesample worked, then dumped and restored and the
> tablesample clause went away... actually pg_get_viewdef() didn't see
> it at all.
>

Yeah, as I mentioned in the submission the ruleutils support is not
there yet, so that's expected.

> will look at the patch more close tomorrow when my brain wake up ;)
>

Thanks!

--
Petr Jelinek http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Gierth 2014-12-16 09:01:47 Re: NUMERIC private methods?
Previous Message Borodin Vladimir 2014-12-16 08:24:22 Re: Streaming replication and WAL archive interactions