I
I
Igor_Petrovv2020-05-20 12:14:37
PostgreSQL
Igor_Petrovv, 2020-05-20 12:14:37

How to update all PostgreSQL extensions installed in the database?

You need to update all extensions, not just one. Perhaps this command is useful for this, it shows installed extensions: SELECT * FROM pg_extension

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melkij, 2020-05-20
@Igor_Petrovv

1. generate requests:

select 'alter extension ' || e.extname || ' update;' FROM pg_catalog.pg_extension e;

2. fulfill these requests. \gexec , for example in psql.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question