Skip to content

Commit

Permalink
backupccl: correctly handle PL/pgSQL routines during restore
Browse files Browse the repository at this point in the history
This patch adds a switch on the routine language before replacements are
made in the body of a UDF or stored procedure. This avoids syntax errors
due to incorrectly using the SQL parser on a PL/pgSQL routine during
RESTORE.

Fixes #116480

Release note (bug fix): Fixed a bug that would cause syntax errors when
attempting to RESTORE a database with PL/pgSQL UDFs or stored procedures.
This bug only affected alpha and beta versions of 23.2.
  • Loading branch information
DrewKimball committed Dec 18, 2023
1 parent 1746cbc commit f554a1f
Show file tree
Hide file tree
Showing 6 changed files with 1,102 additions and 38 deletions.
Loading

0 comments on commit f554a1f

Please sign in to comment.