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 cockroachdb#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 authored and rytaft committed Dec 18, 2023
1 parent 5a41b96 commit e57b771
Show file tree
Hide file tree
Showing 6 changed files with 1,102 additions and 38 deletions.
Loading

0 comments on commit e57b771

Please sign in to comment.