lucas.love
Home Blog TIL Heart

Projects

Zeit Kompressor Afterglow Pagi Futureland Where is Lucas? Vagabundo Macrowave Mr. Knipser

Experiments

Halt and Catch Fire Latency of Celestial Bodies Evil Fluid

Contact

RSS Futureland Mastodon Bluesky
TIL
Track App Opens with Futureland
2024-10-05
How to Fix Issues with Apple's AppIntents Framework?
2023-04-18
Backup and Restore PostgreSQL Database
2023-01-26
Full-Text Search in Multiple Directories Using Grep
2023-01-25
Hot to Get the Index and Data Size of a Table In MySQL/MariaDB
2023-01-12
Hot to Get the Index and Data Size of a Table In PostgreSQL
2023-01-12
Add Keyboard Shortcuts to iPad App
2023-01-10
Creating SVG-Gradients
2022-12-27
How to Extract Date Components from Timestamps in PostgreSQL
2022-12-22
Debug Matrix Instances
2022-12-21
How to Generate UUIDs in PostgreSQL
2022-12-21
Center <text> in SVG
2022-12-20
Display `timestamptz` in Different Timezone in PostgreSQL
2022-12-20
Volume Levels of Everyday Sounds
2022-12-20
Animate SVG <path> with CSS
2022-12-19
Drawing Straight Lines with SVG-Path
2022-12-19
How to Generate UUIDs in PostgreSQL

How to Generate UUIDs in PostgreSQL

2022-12-21 loading views

To generate UUIDs in PostgreSQL the UUID extension has to get activated first.

This can be done using the following command:

CREATE EXTENSION IF NOT EXISTS "uuid-ossp";

After this the extension is available and can get used via uuid_generate_v4(); to create a UUIDv4.

Input

select uuid_generate_v4();

Output

uuid_generate_v4()
af9cac36-5e68-4e1e-a47c-063fce565b05