File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 7
7
* Portions Copyright (c) 1994, Regents of the University of California
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.59 2000/04/12 17:14:57 momjian Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/commands/async.c,v 1.60 2000/05/14 03:18:35 momjian Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -249,6 +249,15 @@ Async_Listen(char *relname, int pid)
249
249
tupDesc = lRel -> rd_att ;
250
250
newtup = heap_formtuple (tupDesc , values , nulls );
251
251
heap_insert (lRel , newtup );
252
+ if (RelationGetForm (lRel )-> relhasindex )
253
+ {
254
+ Relation idescs [Num_pg_listener_indices ];
255
+
256
+ CatalogOpenIndices (Num_pg_listener_indices , Name_pg_listener_indices , idescs );
257
+ CatalogIndexInsert (idescs , Num_pg_listener_indices , lRel , newtup );
258
+ CatalogCloseIndices (Num_pg_listener_indices , idescs );
259
+ }
260
+
252
261
heap_freetuple (newtup );
253
262
254
263
heap_close (lRel , AccessExclusiveLock );
You can’t perform that action at this time.
0 commit comments