fix: add logical backup warning to dbdev template (#26816)

This commit is contained in:
Wen Bo Xie authored and GitHub committed 2024-05-28 21:13:33 -02:30
1 parent a34895ac96
commit decccaf763
1 file changed
+13 -1
@@ -1234,8 +1234,20 @@ $$;
id: 24,
type: 'template',
title: 'Install dbdev',
description: 'dbdev is a client for installing 3rd party packages into your database.',
description:
'dbdev is a client for installing Trusted Language Extensions (TLE) into your database.',
sql: `
/*---------------------
---- install dbdev ----
-----------------------
Requires:
- pg_tle: https://github.com/aws/pg_tle
- pgsql-http: https://github.com/pramsey/pgsql-http
Warning:
Restoring a logical backup of a database with a TLE installed can fail.
For this reason, dbdev should only be used with databases with physical backups enabled.
*/
create extension if not exists http with schema extensions;
create extension if not exists pg_tle;
select pgtle.uninstall_extension_if_exists('supabase-dbdev');