摘要:
explain update test t set crt_time = now() where exists(select 1 from test1 t1 where t1.id = t.id); -> Update on test t (cost=396607.58..1934979.49 ro 阅读全文
摘要:
PostgreSQL Event trigger 使用记录:阻断危险SQL、记录DDL操作 CREATE EVENT TRIGGER — define a new event trigger 语法 CREATE EVENT TRIGGER name ON event [ WHEN filter_va 阅读全文
摘要:
--1.创建模拟数据 DROP TABLE test; CREATE TABLE test(id int, info text); INSERT INTO test SELECT generate_series(1, 10), 'test'; --2.创建存储过程 CREATE OR REPLACE 阅读全文