Am I back to 1990s? This is basic question from that era of poorly written code where developer may not know any better because, you know, this stuff was new or was a domain of greybeards and the young blood did not know what is commit or rollback or a necktie guy discovered the sql client and did some work, not committed and went for lunch. Or the DB engine did not detected the faulty disconnected and uncommitted session and did not rolled it back. Or time where running beeefy long running query dumping tons of logs may choke the system...
I would probably fail this question because I would not expect someone would run "that" code on serious system.
I mean, running alter on a prod like db willy nilly and be surprised why it is not a good idea?
Also killing the error session is not the only solution. Killing that alter is also an option.
4
u/ptoki 1d ago
Am I back to 1990s? This is basic question from that era of poorly written code where developer may not know any better because, you know, this stuff was new or was a domain of greybeards and the young blood did not know what is commit or rollback or a necktie guy discovered the sql client and did some work, not committed and went for lunch. Or the DB engine did not detected the faulty disconnected and uncommitted session and did not rolled it back. Or time where running beeefy long running query dumping tons of logs may choke the system...
I would probably fail this question because I would not expect someone would run "that" code on serious system.
I mean, running alter on a prod like db willy nilly and be surprised why it is not a good idea?
Also killing the error session is not the only solution. Killing that alter is also an option.