-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
126734: sql: allow trigger functions to be created r=DrewKimball a=DrewKimball #### sql: allow trigger functions to be created This commit adds support for trigger function creation. Since trigger functions don't yet known the type of the table they'll be associated with, SQL expressions are not evaluated at creation time. The lazily evaluation is implemented by replacing expressions with NULL, and relations with a single no-column row. This allows CRDB to check that PL/pgSQL usage is correct, and defer checking the SQL usage until the trigger function is associated with a trigger. Fixes #126356 Fixes #126357 Release note (sql change): It is now possible to create PL/pgSQL trigger functions, which can be executed by a trigger in response to table mutation events. Note that this patch does not add support for triggers; only trigger functions. 131357: storage: remove WAL failover enterprise license check r=RaduBerinde a=jbowens The license check may be performed before the node has fully initialized and knows whether a valid enterprise license is available. A warning may be logged erroneously, which may confuse. Remove the license check altogether given the direction CockroachDB enterprise licensing is moving in general. Epic: none Informs #129240. Release note: none 131363: pkg/ccl/testccl/sqlccl/sqlccl_test: TestShowTransferState skip flake r=Dedej-Bergin a=Dedej-Bergin These test has been flaking a couple of times. Adding skip.WithIssue(t, 128125) to skip this test, until it is properly fixed. Informs: #128125 Release note: None Co-authored-by: Drew Kimball <[email protected]> Co-authored-by: Jackson Owens <[email protected]> Co-authored-by: Bergin Dedej <[email protected]>
- Loading branch information
Showing
12 changed files
with
454 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.