TransWikia.com

Backup Functions in PgAdmin 4 Version 1.6

Database Administrators Asked by M.Karthika on November 19, 2021

How to backup all functions in pgadmin 4 version 1.6?
After executing the below query the backup functions stored in which place?
And how to find it?
How to know all information is backed up with what’s being done?

SELECT pg_get_functiondef(f.oid) || E';n'
FROM pg_proc f
   JOIN pg_namespace n ON f.pronamespace = n.oid
WHERE n.nspname = 'schemaname';

One Answer

This is not backing up your functions, it is just selecting the text of them. You could copy the result from pgAdmin and save it to a text file manually if you want.

If you take a full backup of your database the functions will be backed up along with the data.

Answered by indiri on November 19, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP