当 iSQL 会话被删除时,Informix 如何处理临时表?

发布于 2024-09-16 02:34:27 字数 397 浏览 2 评论 0原文

我很好奇当会话终止而不删除这些表时,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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

停顿的约定 2024-09-23 02:34:27

我听说我的名字被徒劳地占用了……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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文