pg_task

execute any sql command at any specific time at background

Overview

PGDG 3rd Party Extension: pg_task : execute any sql command at any specific time at background

Information

Metadata

  • Latest Version: 1.0.0
  • Postgres Support: 17,16,15,14,13
  • Need Load: Explicit Loading Required
  • Need DDL: Need CREATE EXTENSION DDL
  • Relocatable: Can be installed into other schemas
  • Trusted: Untrusted, Require Superuser to Create
  • Schemas: N/A
  • Requires: N/A

RPM / DEB

  • RPM Repo: PGDG
  • RPM Name: pg_task_$v*
  • RPM Ver : 1.0.0
  • RPM Deps: N/A
  • DEB Repo: PIGSTY
  • DEB Name: postgresql-$v-pg-task
  • DEB Ver : 1.0.0
  • DEB Deps: N/A

Packages

OS Arch PG17 PG16 PG15 PG14 PG13
el8 x86_64 pg_task_17
PGDG 2.1.7
pg_task_16
PGDG 2.1.7
pg_task_15
PGDG 2.1.7
pg_task_14
PGDG 2.1.7
pg_task_13
PGDG 2.1.7
el8 aarch64 pg_task_17
PGDG 2.1.7
pg_task_16
PGDG 2.1.7
pg_task_15
PGDG 2.1.7
pg_task_14
PGDG 2.1.7
pg_task_13
PGDG 2.1.7
el9 x86_64 pg_task_17
PGDG 2.1.7
pg_task_16
PGDG 2.1.7
pg_task_15
PGDG 2.1.7
pg_task_14
PGDG 2.1.7
pg_task_13
PGDG 2.1.7
el9 aarch64 pg_task_17
PGDG 2.1.7
pg_task_16
PGDG 2.1.7
pg_task_15
PGDG 2.1.7
pg_task_14
PGDG 2.1.7
pg_task_13
PGDG 2.1.7
d12 x86_64 postgresql-17-pg-task
PIGSTY 1.0.0
postgresql-16-pg-task
PIGSTY 1.0.0
postgresql-15-pg-task
PIGSTY 1.0.0
postgresql-14-pg-task
PIGSTY 1.0.0
postgresql-13-pg-task
PIGSTY 1.0.0
d12 aarch64 postgresql-17-pg-task
PIGSTY 1.0.0
postgresql-16-pg-task
PIGSTY 1.0.0
postgresql-15-pg-task
PIGSTY 1.0.0
postgresql-14-pg-task
PIGSTY 1.0.0
postgresql-13-pg-task
PIGSTY 1.0.0
u22 x86_64 postgresql-17-pg-task
PIGSTY 1.0.0
postgresql-16-pg-task
PIGSTY 1.0.0
postgresql-15-pg-task
PIGSTY 1.0.0
postgresql-14-pg-task
PIGSTY 1.0.0
postgresql-13-pg-task
PIGSTY 1.0.0
u22 aarch64 postgresql-17-pg-task
PIGSTY 1.0.0
postgresql-16-pg-task
PIGSTY 1.0.0
postgresql-15-pg-task
PIGSTY 1.0.0
postgresql-14-pg-task
PIGSTY 1.0.0
postgresql-13-pg-task
PIGSTY 1.0.0
u24 x86_64 postgresql-17-pg-task
PIGSTY 1.0.0
postgresql-16-pg-task
PIGSTY 1.0.0
postgresql-15-pg-task
PIGSTY 1.0.0
postgresql-14-pg-task
PIGSTY 1.0.0
postgresql-13-pg-task
PIGSTY 1.0.0
u24 aarch64 postgresql-17-pg-task
PIGSTY 1.0.0
postgresql-16-pg-task
PIGSTY 1.0.0
postgresql-15-pg-task
PIGSTY 1.0.0
postgresql-14-pg-task
PIGSTY 1.0.0
postgresql-13-pg-task
PIGSTY 1.0.0

Installation

Install pg_task via the pig CLI tool:

pig ext install pg_task

Install pg_task via Pigsty playbook:

./pgsql.yml -t pg_extension -e '{"pg_extensions": ["pg_task"]}' # -l <cls>

Install pg_task RPM from YUM repo directly:

dnf install pg_task_17*;
dnf install pg_task_16*;
dnf install pg_task_15*;
dnf install pg_task_14*;
dnf install pg_task_13*;

Install pg_task DEB from APT repo directly:

apt install postgresql-17-pg-task;
apt install postgresql-16-pg-task;
apt install postgresql-15-pg-task;
apt install postgresql-14-pg-task;
apt install postgresql-13-pg-task;

Extension pg_task has to be added to shared_preload_libraries

shared_preload_libraries = 'pg_task'; # add to pg cluster config

Enable pg_task extension on PostgreSQL cluster:

CREATE EXTENSION pg_task;




Last modified 2025-02-17: add extension part (cfa504b)