Skip to content

Instantly share code, notes, and snippets.

@tetri
Last active October 2, 2025 18:46
Show Gist options
  • Select an option

  • Save tetri/d4b2f6d35e6cb148f31b9928e753e194 to your computer and use it in GitHub Desktop.

Select an option

Save tetri/d4b2f6d35e6cb148f31b9928e753e194 to your computer and use it in GitHub Desktop.
PostgreSQL random boolean for generate test values
SELECT RANDOM()::INT::BOOLEAN;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment