| From: | Jaime Casanova <jaime(at)2ndquadrant(dot)com> |
|---|---|
| To: | Petr Jelinek <petr(at)2ndquadrant(dot)com> |
| Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: TABLESAMPLE patch |
| Date: | 2014-12-22 19:14:13 |
| Message-ID: | CAJKUy5jmQb01bKT=NWRkMhwRz0as5R=dDh5cphHLsCjt9+DD2w@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Thu, Dec 18, 2014 at 7:14 AM, Petr Jelinek <petr(at)2ndquadrant(dot)com> wrote:
> Hi,
>
> v2 version of this patch is attached.
>
a few more tests revealed that passing null as the sample size
argument works, and it shouldn't.
in repeatable it gives an error if i use null as argument but it gives
a syntax error, and it should be a data exception (data exception --
invalid repeat argument in a sample clause) according to the standard
also you need to add CHECK_FOR_INTERRUPTS somewhere, i tried with a
big table and had to wait a long time for it to finish
"""
regression=# select count(1) from tenk1 tablesample system (null);
count
-------
28
(1 row)
regression=# select count(1) from tenk1 tablesample bernoulli (null);
count
-------
0
(1 row)
"""
--
Jaime Casanova www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación
Phone: +593 4 5107566 Cell: +593 987171157
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Haas | 2014-12-22 19:14:31 | Re: parallel mode and parallel contexts |
| Previous Message | Tomas Vondra | 2014-12-22 19:09:07 | Re: pgbench -f and vacuum |