Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Postgres/contrib/btree_gist/sql/   (Postgres Database Version 18.4©)  Datei vom 11.4.2026 mit Größe 990 B image not shown  

Quelle  time.sql

  Sprache: SQL
 

-- time check

CREATE TABLE timetmp (a time);

\copy timetmp from 'data/time.data'

SET enable_seqscan=on;

SELECT count(*) FROM timetmp WHERE a <  '10:57:11';

SELECT count(*) FROM timetmp WHERE a <= '10:57:11';

SELECT count(*) FROM timetmp WHERE a  = '10:57:11';

SELECT count(*) FROM timetmp WHERE a >= '10:57:11';

SELECT count(*) FROM timetmp WHERE a >  '10:57:11';

SELECT a, a <-> '10:57:11' FROM timetmp ORDER BY a <-> '10:57:11' LIMIT 3;

CREATE INDEX timeidx ON timetmp USING gist ( a );

SET enable_seqscan=off;

SELECT count(*) FROM timetmp WHERE a <  '10:57:11'::time;

SELECT count(*) FROM timetmp WHERE a <= '10:57:11'::time;

SELECT count(*) FROM timetmp WHERE a  = '10:57:11'::time;

SELECT count(*) FROM timetmp WHERE a >= '10:57:11'::time;

SELECT count(*) FROM timetmp WHERE a >  '10:57:11'::time;

EXPLAIN (COSTS OFF)
SELECT a, a <-> '10:57:11' FROM timetmp ORDER BY a <-> '10:57:11' LIMIT 3;
SELECT a, a <-> '10:57:11' FROM timetmp ORDER BY a <-> '10:57:11' LIMIT 3;

Messung V0.5 in Prozent
C=94 H=94 G=93

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet am  2026-08-08) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.