1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-26 01:22:12 +03:00

Minor API cleanup for async notifications: we can only register the

current backend in pg_listener, so there is little point in making
the PID to register part of async.c's public API. Other minor tweaks.
This commit is contained in:
Neil Conway
2005-10-06 21:30:39 +00:00
parent 663476919c
commit f59175d72f
3 changed files with 19 additions and 28 deletions

View File

@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.243 2005/08/01 04:03:57 tgl Exp $
* $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.244 2005/10/06 21:30:36 neilc Exp $
*
*-------------------------------------------------------------------------
*/
@ -823,7 +823,7 @@ ProcessUtility(Node *parsetree,
{
ListenStmt *stmt = (ListenStmt *) parsetree;
Async_Listen(stmt->relation->relname, MyProcPid);
Async_Listen(stmt->relation->relname);
}
break;
@ -831,7 +831,7 @@ ProcessUtility(Node *parsetree,
{
UnlistenStmt *stmt = (UnlistenStmt *) parsetree;
Async_Unlisten(stmt->relation->relname, MyProcPid);
Async_Unlisten(stmt->relation->relname);
}
break;