create hypertable

From wikieduonline
Revision as of 12:53, 1 March 2024 by Welcome (talk | contribs) (→‎Errors)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

SELECT create_hypertable('conditions', 'time');

Official example[edit]

CREATE TABLE conditions ( -- create a regular table
 time         TIMESTAMPTZ       NOT NULL,
 location     TEXT              NOT NULL,
 temperature  DOUBLE PRECISION  NULL
);
SELECT create_hypertable('conditions', 'time');	-- turn it into a hypertable

Errors[edit]

  • ERROR #42883 function create_hypertable(unknown, unknown) does not exist

See also[edit]

Advertising: