gnunet-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

requiring PostgreSQL superuser


From: Daniel Golle
Subject: requiring PostgreSQL superuser
Date: Sat, 12 Oct 2024 18:38:14 +0100

Hi!

I've been playing with recent GNUnet releases and noticed that GNUnet
now requirs PostgreSQL super user privileges.
This is problematic and GNUnet should be able to run with only a more
limited set of PostgreSQL permissions.

The reason for that new requirement is
LOCK TABLE pg_catalog.pg_namespace;
being done in src/lib/pq/versioning.sql

The stackoverflow link provided in the comment above suggests that
locking internal tables is generally not a good idea, and that
transactions should rather be used instead.
Did you consider using transactions? Or is there a good reason not to?


Cheers


Daniel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]