Skip to content

Hang when database with disconnect trigger using MON$ tables is shutting down #7979

@AlexPeshkoff

Description

@AlexPeshkoff

When the following database:

SET SQL DIALECT 3;

CREATE TABLE LOGGER (DET_TIME TIMESTAMP,
AC INTEGER);

SET TERM ^ ;
CREATE TRIGGER LOGGER
ACTIVE ON DISCONNECT POSITION 0
as declare variable c int; begin select count(*) from mon$attachments into :c; insert into logger values(current_timestamp, :c); end ^
SET TERM ; ^

COMMIT WORK;

having at least one additional attachment is shutdown SS hangs.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions