postgres.rst 730 B

12345678910111213141516171819202122232425
  1. ========
  2. Postgres
  3. ========
  4. The current schema, as of .21 is::
  5. CREATE TABLE <table> ( unique_key VARCHAR(GEARMAN_UNIQUE_SIZE),
  6. function_name VARCHAR(255),
  7. priority INTEGER,
  8. data BYTEA,
  9. when_to_run INTEGER,
  10. UNIQUE (unique_key, function_name));
  11. To start gearmand edit /etc/default/gearman-job-server to include::
  12. export PGHOST=TheHostname
  13. export PGPORT=5432
  14. export PGUSER=gearman
  15. export PGPASSWORD=ThePassword
  16. export PGDATABASE=gearman
  17. PARAMS="--verbose -q libpq --libpq-table=gearmanqueue1 --verbose"
  18. This is Debian specific so you will need to adapt it to your distribution.