timescaledb/test/sql/sql_query_results_unoptimized.sql
Joshua Lockerman 4e1e15f079 Add reorder command
New cluster-like command which writes to a new index than swaps,
much like is done for the data table, and only acquires
exclusive locks for said swap. This trades off disk usage for
lower contention: we hold locks for a much lower period of time,
allowing reads to work concurrently, but we have both the old
and new versions of the table existing at once, approximately
doubling storage usage while reorder is running.

Currently only works on chunks.
2019-01-02 15:43:48 -05:00

10 lines
363 B
SQL

-- Copyright (c) 2016-2018 Timescale, Inc. All Rights Reserved.
--
-- This file is licensed under the Apache License,
-- see LICENSE-APACHE at the top level directory.
SET timescaledb.disable_optimizations= 'on';
SET max_parallel_workers_per_gather = 0; -- Disable parallel for this test
\ir include/sql_query_results.sql
RESET max_parallel_workers_per_gather;