File: regress_lots_of_nulls.sql

package info (click to toggle)
postgis 3.5.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 70,052 kB
  • sloc: ansic: 162,204; sql: 93,950; xml: 53,121; cpp: 12,646; perl: 5,658; sh: 5,369; makefile: 3,434; python: 1,205; yacc: 447; lex: 151; pascal: 58
file content (13 lines) | stat: -rw-r--r-- 315 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
-- Test index creation on null geometries
-- An index on more than 459 null geometries (with or without actual geometires)
--   used to fail on PostgreSQL 8.2.

CREATE TABLE "test" (
	"num" integer,
	"the_geom" geometry
);

INSERT INTO "test" ("num", "the_geom")
  SELECT i, NULL
  FROM generate_series(1, 500) i;