postgres-uuid

command module
v0.0.0-...-e859a03 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 11 Imported by: 0

README

Postgres and UUID Comments

Postgres queries can have UUIDs associated with them as comments, which then show up in the Postgres logs.

Demo

launch_postgres_server.sh will run a configured Postgres server in a docker container with a configuration that enables full logging. It will also create a table so that data can be inserted and deletd. Once the server is running, the script will tail the logs so that you can see the UUIDs in action. Cancelling the log stream will then stop the Postgres server and clean up.

run_postgres_queries.sh will demonstrate the insertion of some records with UUIDs as comments. You will see the UUIDs show up in the logs.

If you want to see similar inserts done from go, compile the go binary and run it:

go build
./postgres-uuid

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL