Fix error message to reflect that drop_chunks can take a DATE interval

This commit is contained in:
Michael J. Freedman 2017-12-02 11:35:27 -05:00 committed by RobAtticus
parent 30d1483adb
commit 51854ac5c9
2 changed files with 2 additions and 2 deletions

View File

@ -261,7 +261,7 @@ BEGIN
ELSIF time_type = 'TIMESTAMPTZ'::regtype THEN
PERFORM drop_chunks(now() - older_than, table_name, schema_name, cascade);
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
$BODY$;

View File

@ -381,7 +381,7 @@ ROLLBACK;
SELECT drop_chunks(interval '1 minute');
ERROR: Cannot use drop_chunks on multiple tables with different time types
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');
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');