当 iSQL 会话被删除时,Informix 如何处理临时表?
我很好奇当会话终止而不删除这些表时,Informix (7.3) 如何处理没有日志创建的临时表。
我使用 iSQL 连接:
cat |isql db
然后,例如,我创建一个或多个没有日志的临时表:
select first 10 * from table into temp t0 with no log;
code>
如果我不使用普通的 drop table
命令删除该表,然后通过 CTRL+C
退出 iSQL,否则我的会话会终止,Informix 会做什么这个/这些临时表?
为此,我再次召唤 Jonathan Leffler(常驻 informix 专业人士)!
I'm curious as to how Informix (7.3) deals with temporary tables created with no log when a session is terminated without dropping those tables.
I connect using iSQL:
cat |isql db
Then, for example, I create one or more temporary tables with no log:
select first 10 * from table into temp t0 with no log;
If I don't drop this table with the normal drop table
command and then exit iSQL via CTRL+C
or my session gets terminated otherwise, what does Informix do with this/these temporary tables?
I summon Jonathan Leffler - the resident informix pro - again for this!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我听说我的名字被徒劳地占用了……wassup?
哦...好消息是,由于数据服务器(无论是 Informix SE 还是 IDS)是一个独立的进程,即使前端程序(示例中的
isql
)崩溃了控制,服务器仍在运行,注意到前端已经消失(最终;有时可能需要一秒钟左右才能注意到),然后进行清理,回滚任何活动事务并删除临时表等。如果服务器本身崩溃,那么 IDS 将在重新启动时进行清理,但 Informix SE 并不知道它崩溃了,只有这样,临时表文件才会被留下。
I hear my name being taken in vain...wassup?
Oh...the good news is that because the data server (whether it is Informix SE or IDS) is an independent process, even if the front-end program (
isql
in the example) crashes out of control, the server is still running, notices that the front end has gone (eventually; it might take a second or so to notice sometimes) and then cleans up, rolling back any active transaction and dropping temporary tables and so on.If the server itself crashes, then IDS will do the cleanup when it is restarted, but Informix SE isn't aware that it crashed and then, but only then, will the temporary table files be left lying around.