pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedtablesample clause doesnt support to be applied to subquery.
2+ messages / 2 participants
[nested] [flat]
* tablesample clause doesnt support to be applied to subquery.
@ 2022-08-08 07:52 Wind <guolipengyeah@126.com>
2022-08-08 08:05 ` Re: tablesample clause doesnt support to be applied to subquery. rob stone <floriparob@tpg.com.au>
0 siblings, 1 reply; 2+ messages in thread
From: Wind @ 2022-08-08 07:52 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
hi~
I test "tablesample" feature on pg9.5 and found that tablesample doesnt support to be applied to subquery.
for example this sql doesnt work on pg9.5:
```
create table t1(
c1 int,
c2 int
);
select c2 from (select * from t1) as t2 tablesample system (50);
```
while i read sql2003 standard about tablesample and think it should allow this usage according to standard.
is it a deviation to sql standard?
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: tablesample clause doesnt support to be applied to subquery.
2022-08-08 07:52 tablesample clause doesnt support to be applied to subquery. Wind <guolipengyeah@126.com>
@ 2022-08-08 08:05 ` rob stone <floriparob@tpg.com.au>
0 siblings, 0 replies; 2+ messages in thread
From: rob stone @ 2022-08-08 08:05 UTC (permalink / raw)
To: Wind <guolipengyeah@126.com>; pgsql-general@lists.postgresql.org
Hello,
On Mon, 2022-08-08 at 15:52 +0800, Wind wrote:
> hi~
> I test "tablesample" feature on pg9.5 and found that tablesample
> doesnt support to be applied to subquery.
> for example this sql doesnt work on pg9.5:
> ```
> create table t1(
> c1 int,
> c2 int
> );
> select c2 from (select * from t1) as t2 tablesample system (50);
> ```
> while i read sql2003 standard about tablesample and think it should
> allow this usage according to standard.
> is it a deviation to sql standard?
Version 9.5 is not supported. The oldest supported version is 10, the
current version is 14.
Please read chapter 58 in the doco.
HTH,
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2022-08-08 08:05 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-08-08 07:52 tablesample clause doesnt support to be applied to subquery. Wind <guolipengyeah@126.com>
2022-08-08 08:05 ` rob stone <floriparob@tpg.com.au>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox