File: smith3

package info (click to toggle)
sqlreduce 1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,172 kB
  • sloc: python: 1,026; sql: 40; sh: 22; makefile: 14
file content (29 lines) | stat: -rw-r--r-- 536 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
drop table if exists fkpart3_pk5 cascade;
drop table if exists inet_tbl;


create table fkpart3_pk5 (
    a integer not null primary key
)
partition by range (a);


create table fkpart3_pk51 partition of fkpart3_pk5
	for values from (4000) to (4500);


create table inet_tbl (
    c cidr,
    i inet
);


select
    1 as c0
from
	(select null::integer as c9,
	        ref_0.a as c24
	   from fkpart3_pk5 as ref_0
      	) as subq_0
      	right join public.inet_tbl as sample_0 on (cast(null as cidr) = c)
where subq_0.c9 <= subq_0.c24