mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-16 18:43:18 +08:00
Fix error message to reflect that drop_chunks can take a DATE interval
This commit is contained in:
parent
30d1483adb
commit
51854ac5c9
@ -261,7 +261,7 @@ BEGIN
|
|||||||
ELSIF time_type = 'TIMESTAMPTZ'::regtype THEN
|
ELSIF time_type = 'TIMESTAMPTZ'::regtype THEN
|
||||||
PERFORM drop_chunks(now() - older_than, table_name, schema_name, cascade);
|
PERFORM drop_chunks(now() - older_than, table_name, schema_name, cascade);
|
||||||
ELSE
|
ELSE
|
||||||
RAISE 'Can only use drop_chunks with an INTERVAL for TIMESTAMP and TIMESTAMPTZ types';
|
RAISE 'Can only use drop_chunks with an INTERVAL for TIMESTAMP, TIMESTAMPTZ, and DATE types';
|
||||||
END IF;
|
END IF;
|
||||||
END
|
END
|
||||||
$BODY$;
|
$BODY$;
|
||||||
|
@ -381,7 +381,7 @@ ROLLBACK;
|
|||||||
SELECT drop_chunks(interval '1 minute');
|
SELECT drop_chunks(interval '1 minute');
|
||||||
ERROR: Cannot use drop_chunks on multiple tables with different time types
|
ERROR: Cannot use drop_chunks on multiple tables with different time types
|
||||||
SELECT drop_chunks(interval '1 minute', 'drop_chunk_test3');
|
SELECT drop_chunks(interval '1 minute', 'drop_chunk_test3');
|
||||||
ERROR: Can only use drop_chunks with an INTERVAL for TIMESTAMP and TIMESTAMPTZ types
|
ERROR: Can only use drop_chunks with an INTERVAL for TIMESTAMP, TIMESTAMPTZ, and DATE types
|
||||||
SELECT drop_chunks(now()-interval '1 minute', 'drop_chunk_test_ts');
|
SELECT drop_chunks(now()-interval '1 minute', 'drop_chunk_test_ts');
|
||||||
ERROR: Cannot call drop_chunks with a timestamp with time zone on hypertables with a time type of: timestamp without time zone
|
ERROR: Cannot call drop_chunks with a timestamp with time zone on hypertables with a time type of: timestamp without time zone
|
||||||
SELECT drop_chunks(now()::timestamp-interval '1 minute', 'drop_chunk_test_tstz');
|
SELECT drop_chunks(now()::timestamp-interval '1 minute', 'drop_chunk_test_tstz');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user