2
0
Fork 0
mirror of https://github.com/carlospolop/hacktricks synced 2025-04-04 06:47:07 +00:00

GITBOOK-4012: change request with no subject merged in GitBook

This commit is contained in:
CPol 2023-07-19 11:35:52 +00:00 committed by gitbook-bot
parent df038bd147
commit 184e54867b
No known key found for this signature in database
GPG key ID: 07D2180C7B12D0FF

View file

@ -299,11 +299,13 @@ You can find **more functions** in [https://www.postgresql.org/docs/current/func
### Simple File Writing
Only **super users** and members of **`pg_read_server_files`** can use copy to write files.
Only **super users** and members of **`pg_write_server_files`** can use copy to write files.
{% code overflow="wrap" %}
```sql
copy (select convert_from(decode('<ENCODED_PAYLOAD>','base64'),'utf-8')) to '/just/a/path.exec';
```
{% endcode %}
{% hint style="warning" %}
Remember that if you aren't super user but has the **`CREATEROLE`** permissions you can **make yourself member of that group:**