postgreSQL psql watch重复执行SQL语句的命令

CREATE TABLE test(
 id SERIAL PRIMARY KEY,
 time TIMESTAMPTZ NOT NULL DEFAULT now()
);

postgres=# INSERT INTO test values(default,default);\watch 120
INSERT 0 1
Sun 14 Jul 2019 05:34:16 PM CST (every 120s)

INSERT 0 1

Sun 14 Jul 2019 05:36:16 PM CST (every 120s)

INSERT 0 1

Sun 14 Jul 2019 05:38:16 PM CST (every 120s)

INSERT 0 1

Sun 14 Jul 2019 05:40:16 PM CST (every 120s)

INSERT 0 1

Sun 14 Jul 2019 05:42:17 PM CST (every 120s)

INSERT 0 1

你可能感兴趣的:(postgreSQL psql watch重复执行SQL语句的命令)