question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Output tab doesn't show RAISE messages from triggers when inserting data via data grid

See original GitHub issue

System 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:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
serge-ridercommented, Jul 27, 2020

Data edit logging was added

0reactions
kseniiaguzeevacommented, Jul 28, 2020

Ok, implemented.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found