Skip to content

Commit

Permalink
Add hstore column Processes.StateData
Browse files Browse the repository at this point in the history
To be used by cron job functions that need to keep a state between executions.
  • Loading branch information
joelonsql committed Jan 22, 2017
1 parent 9011793 commit 7a36680
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions TABLES/processes.sql
Expand Up @@ -10,6 +10,7 @@ LastRunStartedAt timestamptz,
LastRunFinishedAt timestamptz,
BatchJobState batchjobstate,
PgBackendPID integer,
StateData hstore,
PRIMARY KEY (ProcessID)
);

Expand Down
1 change: 1 addition & 0 deletions install.sql
@@ -1,5 +1,6 @@
ROLLBACK;
\set AUTOCOMMIT OFF
CREATE EXTENSION hstore;
BEGIN;
CREATE TYPE public.batchjobstate AS ENUM (
'AGAIN',
Expand Down

0 comments on commit 7a36680

Please sign in to comment.