From decccaf763dc877e2c29151e02ded53002afcd88 Mon Sep 17 00:00:00 2001 From: Wen Bo Xie <5532241+w3b6x9@users.noreply.github.com> Date: Tue, 28 May 2024 16:43:33 -0700 Subject: [PATCH] fix: add logical backup warning to dbdev template (#26816) --- .../interfaces/SQLEditor/SQLEditor.queries.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/apps/studio/components/interfaces/SQLEditor/SQLEditor.queries.ts b/apps/studio/components/interfaces/SQLEditor/SQLEditor.queries.ts index f76dff002ad..ead4a507778 100644 --- a/apps/studio/components/interfaces/SQLEditor/SQLEditor.queries.ts +++ b/apps/studio/components/interfaces/SQLEditor/SQLEditor.queries.ts @@ -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');