This is a list of URLs to PostgreSQL EXTENSION repos, listed in alphabetical order of parent repo, with active forks listed under each parent.
⭐️ >= 10 stars
⭐️⭐️ >= 100 stars
⭐️⭐️⭐️ >= 1000 stars
Numbers of stars might not be up-to-date.
# Clean the database | |
DROP TABLE IF EXISTS _orders CASCADE; | |
DROP TABLE IF EXISTS _users CASCADE; | |
DROP TABLE IF EXISTS orders CASCADE; | |
DROP TABLE IF EXISTS users CASCADE; | |
# Build the database (for hard deletion) | |
CREATE TABLE users ( | |
id integer PRIMARY KEY GENERATED ALWAYS AS IDENTITY, | |
name text NOT NULL |
SELECT | |
'area-' || release_date::TEXT || '-' || area_id::TEXT AS key, | |
JSONB_AGG( | |
JSONB_BUILD_OBJECT( | |
'area_code', area_code, | |
'area_type', area_type, | |
'area_name', area_name, | |
'date', to_char(date::DATE, 'YYYY-MM-DD'), | |
'metric', metric, | |
'value', value, |
#include <stdio.h> | |
int main(void) | |
{ | |
printf("hello, world\n"); | |
} |
{ | |
description = "a skeleton haskell flake"; | |
inputs = { | |
nixpkgs.url = "github:NixOS/nixpkgs/nixos-20.09"; | |
flake-utils.url = "github:numtide/flake-utils"; | |
}; | |
outputs = { self, nixpkgs, flake-utils, ... }: | |
flake-utils.lib.eachDefaultSystem (system: | |
let | |
pkgs = import nixpkgs { |
module PrettyParseError ( | |
prettyParseError, | |
PrettyParseErrorOptions(PrettyParseErrorOptions), | |
prettyParseErrorDefaults | |
) where | |
import Data.List (intercalate, nub) | |
import Text.Parsec | |
import Text.Parsec.Error | |
import Text.Parsec.Pos |
#!/usr/bin/awk -f | |
# This program is a copy of guff, a plot device. https://github.com/silentbicycle/guff | |
# My copy here is written in awk instead of C, has no compelling benefit. | |
# Public domain. @thingskatedid | |
# Run as awk -v x=xyz ... or env variables for stuff? | |
# Assumptions: the data is evenly spaced along the x-axis | |
# TODO: moving average |
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; | |
-- My port of https://github.com/kurttheviking/uuid-with-v6-js | |
-- A hacky translation of: | |
-- - http://gh.peabody.io/uuidv6/ | |
-- - https://tools.ietf.org/html/draft-peabody-dispatch-new-uuid-format | |
CREATE OR REPLACE FUNCTION uuid_v1_to_v6(v1 uuid) | |
RETURNS uuid AS $$ | |
DECLARE | |
v6 text; |
/* | |
* MIT License | |
* | |
* Copyright (c) 2023-2024 Fabio Lima | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
select | |
first_name, | |
last_name | |
from | |
users | |
left join | |
companies on companies.id = users.company_id | |
where ( | |
companies.name like 'TERM%' or | |
first_name like 'TERM%' or |