diff options
author | Bruce Momjian <bruce@momjian.us> | 2000-05-14 03:18:35 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2000-05-14 03:18:35 +0000 |
commit | bdeeb4fe8ac22179eb0e12f16486e79c16090a2b (patch) | |
tree | eced181deaf8e2f0c0f5be316a47c7f4f24727e6 /src/backend/commands/async.c | |
parent | f301fabf4ec70fb1cd889c7a698758a769e83701 (diff) | |
download | postgresql-bdeeb4fe8ac22179eb0e12f16486e79c16090a2b.tar.gz postgresql-bdeeb4fe8ac22179eb0e12f16486e79c16090a2b.zip |
Finally fix LISTEN problem.
Diffstat (limited to 'src/backend/commands/async.c')
-rw-r--r-- | src/backend/commands/async.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/backend/commands/async.c b/src/backend/commands/async.c index f6079885fa7..c045f09b83d 100644 --- a/src/backend/commands/async.c +++ b/src/backend/commands/async.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * 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; newtup = heap_formtuple(tupDesc, values, nulls); 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_close(lRel, AccessExclusiveLock); |