Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は次のようなシェルコマンドを持っていますか?
sort -k 1 -u ../same_files/put_$2 > ../same_files/p1_$2。
sort -k 1 -u ../same_files/put_$2 > ../same_files/p1_$2
このコマンドをperlスクリプトに変換したいのですが、変換することができます
テーブルにトリガーを作成できますON INSERT OR UPDATE。発火させてFOR EACH STATEMENTください。
ON INSERT OR UPDATE
FOR EACH STATEMENT
トリガーNOTIFYで、条件に一致し、クライアント アプリケーションを持つデータに対して実行しますLISTEN。次に、クライアントは a を実行して、必要なSELECTデータをフェッチします。 LISTEN/NOTIFYは、PostgreSQL の外部でイベントをトリガーする方法です。
NOTIFY
LISTEN
SELECT