Skip to content

theory/pg_savior

 
 

Repository files navigation

pg_savior

pg_savior is a PostgreSQL extension designed to prevent accidental data loss due to non-parameterized DELETE queries without a WHERE clause.

Features

  • Detects DELETE queries without a WHERE clause.
  • Logs detailed information about detected queries.
  • Hooks into the PostgreSQL query execution process.

Installation

  1. Clone the repository.
  2. Navigate to the repository directory.
  3. Run make to build the extension.
  4. Run make install to install the extension.

Demo

demo.png

Usage

After installing the extension, you can enable it in your PostgreSQL database with the following command:

CREATE EXTENSION pg_savior;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 96.8%
  • Makefile 3.2%