mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
Finally fix LISTEN problem.
This commit is contained in:
parent
f301fabf4e
commit
bdeeb4fe8a
@ -7,7 +7,7 @@
|
|||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.59 2000/04/12 17:14:57 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.60 2000/05/14 03:18:35 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -249,6 +249,15 @@ Async_Listen(char *relname, int pid)
|
|||||||
tupDesc = lRel->rd_att;
|
tupDesc = lRel->rd_att;
|
||||||
newtup = heap_formtuple(tupDesc, values, nulls);
|
newtup = heap_formtuple(tupDesc, values, nulls);
|
||||||
heap_insert(lRel, newtup);
|
heap_insert(lRel, newtup);
|
||||||
|
if (RelationGetForm(lRel)->relhasindex)
|
||||||
|
{
|
||||||
|
Relation idescs[Num_pg_listener_indices];
|
||||||
|
|
||||||
|
CatalogOpenIndices(Num_pg_listener_indices, Name_pg_listener_indices, idescs);
|
||||||
|
CatalogIndexInsert(idescs, Num_pg_listener_indices, lRel, newtup);
|
||||||
|
CatalogCloseIndices(Num_pg_listener_indices, idescs);
|
||||||
|
}
|
||||||
|
|
||||||
heap_freetuple(newtup);
|
heap_freetuple(newtup);
|
||||||
|
|
||||||
heap_close(lRel, AccessExclusiveLock);
|
heap_close(lRel, AccessExclusiveLock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user