Skip site navigation (1) Skip section navigation (2)

pgsql: Fix psql to not go into infinite recursion when expanding a

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix psql to not go into infinite recursion when expanding a
Date: 2010-05-05 22:18:57
Message-ID: 20100505221857.3C1917541D2@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Fix psql to not go into infinite recursion when expanding a variable that
refers to itself (directly or indirectly).  Instead, print a message when
recursion is detected, and don't expand the repeated reference.  Per bug
#5448 from Francis Markham.

Back-patch to 8.0.  Although the issue exists in 7.4 as well, it seems
impractical to fix there because of the lack of any state stack that
could be used to track active expansions.

Modified Files:
--------------
    pgsql/src/bin/psql:
        psqlscan.l (r1.32 -> r1.33)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/psqlscan.l?r1=1.32&r2=1.33)

pgsql-committers by date

Next:From: Tom LaneDate: 2010-05-05 22:19:05
Subject: pgsql: Fix psql to not go into infinite recursion when expanding a
Previous:From: ormodDate: 2010-05-05 19:56:50
Subject: pgmemcache: pgmemcache/debian changelog

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group