51
10
submitted 1 year ago by [email protected] to c/[email protected]
52
5
submitted 2 years ago by [email protected] to c/[email protected]
53
3
Greenmask Beta Release (www.postgresql.org)
submitted 2 years ago by [email protected] to c/[email protected]
54
9
PostgreSQL and FIPS mode (peter.eisentraut.org)
submitted 2 years ago by [email protected] to c/[email protected]
55
6
submitted 2 years ago by [email protected] to c/[email protected]
56
2
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]
  • Support for dark visual theme added.
  • SSL implemented.
  • Unicode names of objects are now supported.
  • Support for Windows 11 ARM added.
  • Updated SSH library with ECDSA, Ed25519 keys and Keyboard-interactive authentication method support.
  • Support for PostgreSQL 16.
  • JSON data type is now supported.
  • Schema selection is now available.
  • Encoding option for script file has been added.
  • Files with test data are now supplied with the program installation pack.
  • Many other improvements and fixes.
57
3
submitted 2 years ago by [email protected] to c/[email protected]
58
4
submitted 2 years ago by [email protected] to c/[email protected]
59
25
submitted 2 years ago* (last edited 2 years ago) by [email protected] to c/[email protected]

Example flow is on the image. Here I want to accomplish if playlist removed, make it delete image too.

I know I should've put FK on image table but Image is generic and its used more than once.

What are my options? Triggers and application-side comes to mind, but I'm not sure. Maybe there is a better way.

UPDATE: I guess I've found what I was looking for, rules:

CREATE RULE playlist_delete AS ON DELETE TO playlist WHERE (SELECT id FROM image WHERE image.id = OLD.image_id) IS NOT NULL DO INSTEAD NOTHING;

60
10
submitted 2 years ago by [email protected] to c/[email protected]
61
2
submitted 2 years ago by [email protected] to c/[email protected]
62
9
submitted 2 years ago by [email protected] to c/[email protected]
63
8
submitted 2 years ago by [email protected] to c/[email protected]
64
6
submitted 2 years ago by [email protected] to c/[email protected]
65
10
submitted 2 years ago by [email protected] to c/[email protected]
66
5
submitted 2 years ago by [email protected] to c/[email protected]
67
9
Postgres Guide: Cache (www.postgresguide.com)
submitted 2 years ago by [email protected] to c/[email protected]
68
7
submitted 2 years ago by [email protected] to c/[email protected]
69
8
submitted 2 years ago by [email protected] to c/[email protected]
70
14
submitted 2 years ago by [email protected] to c/[email protected]
71
3
submitted 2 years ago by [email protected] to c/[email protected]
72
6
submitted 2 years ago by [email protected] to c/[email protected]
73
4
submitted 2 years ago by [email protected] to c/[email protected]
74
6
submitted 2 years ago by [email protected] to c/[email protected]
75
5
submitted 2 years ago by [email protected] to c/[email protected]
view more: ‹ prev next ›

PostgreSQL

921 readers
1 users here now

The world's most advanced open source relational database

Project
Events
Podcasts
Related Fediverse communities

founded 2 years ago
MODERATORS