mirror of
https://github.com/postgres/postgres.git
synced 2025-06-17 17:02:08 +03:00
Fix the raw-parsetree representation of star (as in SELECT * FROM or
SELECT foo.*) so that it cannot be confused with a quoted identifier "*". Instead create a separate node type A_Star to represent this notation. Per pgsql-hackers discussion of 2007-Sep-27.
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/commands/async.c,v 1.140 2008/03/26 21:10:37 alvherre Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/commands/async.c,v 1.141 2008/08/30 01:39:13 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -274,24 +274,16 @@ Async_Listen(const char *relname)
|
||||
void
|
||||
Async_Unlisten(const char *relname)
|
||||
{
|
||||
/* Handle specially the `unlisten "*"' command */
|
||||
if ((!relname) || (*relname == '\0') || (strcmp(relname, "*") == 0))
|
||||
{
|
||||
Async_UnlistenAll();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (Trace_notify)
|
||||
elog(DEBUG1, "Async_Unlisten(%s,%d)", relname, MyProcPid);
|
||||
if (Trace_notify)
|
||||
elog(DEBUG1, "Async_Unlisten(%s,%d)", relname, MyProcPid);
|
||||
|
||||
queue_listen(LISTEN_UNLISTEN, relname);
|
||||
}
|
||||
queue_listen(LISTEN_UNLISTEN, relname);
|
||||
}
|
||||
|
||||
/*
|
||||
* Async_UnlistenAll
|
||||
*
|
||||
* This is invoked by UNLISTEN "*" command, and also at backend exit.
|
||||
* This is invoked by UNLISTEN * command, and also at backend exit.
|
||||
*/
|
||||
void
|
||||
Async_UnlistenAll(void)
|
||||
|
Reference in New Issue
Block a user