我打开了两个数据库控制台,使用rails dbconsole
. 我在他们两个中都发出了以下命令:
listen ninja;
而且,在第二个控制台中,我还写道:
notify ninja;
但是,只有第二个控制台会看到此通知:
NOTIFY
Asynchronous notification "ninja" received from server process with PID 16837.
为什么两个控制台都没有收到通知?有什么设置可以让他们都收到吗?
我打开了两个数据库控制台,使用rails dbconsole
. 我在他们两个中都发出了以下命令:
listen ninja;
而且,在第二个控制台中,我还写道:
notify ninja;
但是,只有第二个控制台会看到此通知:
NOTIFY
Asynchronous notification "ninja" received from server process with PID 16837.
为什么两个控制台都没有收到通知?有什么设置可以让他们都收到吗?