RE: Update "usename" in pg_user

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

 



>>
>> update pg_user set usename = 'usename@xxxxxxxxxxxxxxxxxxx' where
>> usename = 'dorota.germann';
>
>1) don't update system tables directly unless you absolutely must

OK.

>ALTER USER <username> RENAME TO <new_username> is what you want
>
>2) To use characters other than alphanumeric or _ then you need to use
>double quotes
>
>
>So:
>
>ALTER USER dorota.germann RENAME TO "dorota.germann@helmholtz-
>munich.de";
>
>should do the job
>
>Paul

Hi Paul,

thanks. Can I do this for all users in one turn ?

Bernd

Helmholtz Zentrum München – Deutsches Forschungszentrum für Gesundheit und Umwelt (GmbH)
Ingolstädter Landstraße 1, D-85764 Neuherberg, https://www.helmholtz-munich.de
Geschäftsführung: Prof. Dr. med. Dr. h.c. Matthias H. Tschöp, Prof. Dr. Dr. h.c. mult. Martin Hrabě de Angelis (komm.) | Aufsichtsratsvorsitzende: MinDir’in Prof. Dr. Veronika von Messling
Registergericht: Amtsgericht München HRB 6466 | USt-IdNr. DE 129521671




[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux