Output tab doesn't show RAISE messages from triggers when inserting data via data grid
See original GitHub issueSystem information:
- Operating system (distribution) and version: mac 10.15.4
- DBeaver version 7.1.1, 7.1.2
Connection specification:
- Database name and version postgres 12.2
Describe the problem you’re observing:
Messages from RAISE statements in Triggers are not shown if modifying the table via the data grid and saving. If I create a script from the modifications - the lines are shown properly.
Steps to reproduce, if exist:
SET client_min_messages=notice; -- it's the default
CREATE TABLE foo(
id int,
txt TEXT
);
CREATE OR REPLACE FUNCTION trgfn_foo()
RETURNS trigger
LANGUAGE plpgsql
AS $$
BEGIN
RAISE NOTICE 'we should see this in the Output tab';
RETURN NULL;
END; $$;
CREATE TRIGGER foo_trg
AFTER INSERT ON foo
FOR EACH ROW
EXECUTE FUNCTION trgfn_foo();
INSERT INTO foo(id, txt)
VALUES (1,'a'); -- "we should see this in the Output tab" will be shown in the output tab
SELECT * FROM foo;
--now duplicate the existing row in the data grid and save -->nothing is added to the Output tab
Include any warning/errors/backtraces from the logs
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Cannot use UPDATE with OUTPUT clause when a trigger is ...
Columns returned from OUTPUT reflect the data as it is after the INSERT, UPDATE, or DELETE statement has completed but before triggers are...
Read more >Create event-based triggers - Azure Data Factory & Azure ...
Learn how to create a trigger in an Azure Data Factory or Azure Synapse Analytics that runs a pipeline in response to an...
Read more >How to create and use DML triggers to audit data changes
From here, check the StandardPrice column, and click the Create button in the Triggers group, under the Home tab to create the trigger...
Read more >Using the NOWAIT option with the SQL Server RAISERROR ...
Don't be deceived if messages are obscured by the Results windows of SSMS or the Grids windows in Query Analyzer. When query results...
Read more >Data Grid 2 | Mendix Documentation
If you are using Custom content in the Show option of the General tab, please make sure you are using a Text Widget...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Data edit logging was added
Ok, implemented.