Pgqueuer

Latest version: v0.19.3

Safety actively analyzes 706267 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 9 of 13

0.6.4

**Full Changelog**: https://github.com/janbjorge/PgQueuer/compare/v0.6.3...v0.6.4

0.6.3

What's Changed
* Update query builder doc-strings by janbjorge in https://github.com/janbjorge/PgQueuer/pull/77
* Add optional dependencies asyncpg/psycopg by janbjorge in https://github.com/janbjorge/PgQueuer/pull/79
* Update dev dependencies by janbjorge in https://github.com/janbjorge/PgQueuer/pull/80


**Full Changelog**: https://github.com/janbjorge/PgQueuer/compare/v0.6.2...v0.6.3

0.6.2

What's Changed
* Fix a few annoyances in docs. by janbjorge in https://github.com/janbjorge/PgQueuer/pull/75


**Full Changelog**: https://github.com/janbjorge/PgQueuer/compare/v0.6.1...v0.6.2

0.6.1

What's Changed
* CI test with more pg versions by janbjorge in https://github.com/janbjorge/PgQueuer/pull/69
* Job model id uses job-id type by janbjorge in https://github.com/janbjorge/PgQueuer/pull/71
* Make ruff max line length 100 by janbjorge in https://github.com/janbjorge/PgQueuer/pull/72
* Improve documentation by poksiala in https://github.com/janbjorge/PgQueuer/pull/70

New Contributors
* poksiala made their first contribution in https://github.com/janbjorge/PgQueuer/pull/70

**Full Changelog**: https://github.com/janbjorge/PgQueuer/compare/v0.6.0...v0.6.1

0.6.0

Release Notes

What's Changed
* apg vs. psy benchmark section by janbjorge in https://github.com/janbjorge/PgQueuer/pull/61
* Remove superfluous use of dsn func by janbjorge in https://github.com/janbjorge/PgQueuer/pull/62
* Update docker compose ci by janbjorge in https://github.com/janbjorge/PgQueuer/pull/64
* Use relative imports by janbjorge in https://github.com/janbjorge/PgQueuer/pull/66
* Entrypoint rate limit by janbjorge in https://github.com/janbjorge/PgQueuer/pull/65

Breaking Changes
**Important:** Before upgrading to this version, you must run the following command:
bash
python3 -m PgQueuer upgrade

Alternatively, you can manually update the trigger function before booting up the new version.

psql
CREATE OR REPLACE FUNCTION fn_pgqueuer_changed() RETURNS TRIGGER AS $$
DECLARE
to_emit BOOLEAN := false; -- Flag to decide whether to emit a notification
BEGIN
-- Check operation type and set the emit flag accordingly
IF TG_OP = 'UPDATE' AND OLD IS DISTINCT FROM NEW THEN
to_emit := true;
ELSIF TG_OP = 'DELETE' THEN
to_emit := true;
ELSIF TG_OP = 'INSERT' THEN
to_emit := true;
ELSIF TG_OP = 'TRUNCATE' THEN
to_emit := true;
END IF;

-- Perform notification if the emit flag is set
IF to_emit THEN
PERFORM pg_notify(
'ch_pgqueuer',
json_build_object(
'channel', 'ch_pgqueuer',
'operation', lower(TG_OP),
'sent_at', NOW(),
'table', TG_TABLE_NAME,
'type', 'table_changed_event'
)::text
);
END IF;

-- Return appropriate value based on the operation
IF TG_OP IN ('INSERT', 'UPDATE') THEN
RETURN NEW;
ELSIF TG_OP = 'DELETE' THEN
RETURN OLD;
ELSE
RETURN NULL; -- For TRUNCATE and other non-row-specific contexts
END IF;

END;
$$ LANGUAGE plpgsql;


**Full Changelog**: https://github.com/janbjorge/PgQueuer/compare/v0.5.7...v0.6.0

0.5.8

**Full Changelog**: https://github.com/janbjorge/PgQueuer/compare/v0.5.7...v0.5.8

Page 9 of 13

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.