Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 11ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login

All gists

All Recently liked Recently forked

thierry / PostgreSQL : requêtes de base

Last active 5 days ago postgres sql

Quelques requêtes SQL de base pour Postgres

1 0 1
1
2 -- Faire le reset du password d'un role Postgres
3 ALTER ROLE nom_du_role WITH PASSWORD 'nouveau_mot_de_passe';
4
5
6 -- Créer un role Postgres
7 CREATE USER mon_admin WITH PASSWORD 'mon_mot_de_passe' SUPERUSER;
8
9 -- Attribuer des droits SUPERUSER à un role
10 ALTER USER mon_admin WITH SUPERUSER;