pg_fetch_cycle is an experimental PostgreSQL extension built on top of pg_net that orchestrates multi-step HTTP request sequences. It enables things like paginated API scraping, request chaining, and stateful HTTP workflows.
Find a file
2025-09-01 10:20:11 +00:00
DIAGRAM.md Add architecture diagram 2025-08-23 00:19:19 +02:00
install.sh Installer no longer uses hard links 2025-08-31 20:11:32 +00:00
LICENSE Add MIT license 2025-08-23 00:36:20 +02:00
PATTERN_RELOAD.md Fixed some of Claude.ai's odd statements 2025-08-31 09:17:28 +02:00
pg_fetch_cycle--1.0--noop.sql Renamed files for compatibility with the new install 2025-08-31 20:17:42 +00:00
pg_fetch_cycle--1.0.sql Renamed files for compatibility with the new install 2025-08-31 20:17:42 +00:00
pg_fetch_cycle--noop--1.0.sql fixed bug: use override_buffer_suffix 2025-09-01 10:20:11 +00:00
pg_fetch_cycle.control Add PostgreSQL extensions for fetch cycles 2025-08-22 19:50:11 +02:00
README.md Added documentation of the hot reloading pattern 2025-08-28 11:02:56 +00:00
SUMMARY.md Removed outdated install.sh option and functions which never worked 2025-08-27 20:43:11 +00:00

pg_fetch_cycle PostgreSQL Extension

A PostgreSQL extension for managing fetch cycles with pg_net.

Documentation

Dependencies

  • pg_net: PostgreSQL HTTP client extension
  • citext: Case-insensitive text type extension

Installation

  1. Install the extension files to your PostgreSQL extensions directory:

    # Development mode - create symbolic links for easy reloading
    ./install.sh
    
  2. Install the pg_fetch_cycle extension (dependencies will be installed automatically):

    create extension pg_fetch_cycle version 'noop';
    select pg_fetch_cycle_reload();
    

Development

Reloading During Development

To reload the extension during development:

  1. For reloading procedures and functions:

    select pg_fetch_cycle_reload();
    
  2. For completely dropping and recreating the extension:

    select pg_fetch_cycle_recreate();