pg_user problem

From: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
To: pgsql-hackers(at)postgreSQL(dot)org
Cc: t-ishii(at)srapc451(dot)sra(dot)co(dot)jp
Subject: pg_user problem
Date: 1998-09-11 14:02:29
Message-ID: 199809111402.XAA05862@srapc451.sra.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi, please apply following patches to rewrite/rewriteManip.c.
This seems to fix the "pg_user problem." (I am not very familiar
with the rule/rewrite area, so my understanding may be wrong)
The original code sets varlevelsup even if the node is not
variable node. This assumption is not always correct, for example
with the password column of pg_user view.
Anyway, with the patch the select_view test is now ok on my LiuxPPC
box.

*** rewriteManip.c.orig Fri Sep 11 21:24:04 1998
--- rewriteManip.c Fri Sep 11 22:18:33 1998
***************
*** 633,639 ****
*nodePtr = copyObject(n);
else
*nodePtr = n;
! ((Var *) *nodePtr)->varlevelsup = this_varlevelsup;
}
*modified = TRUE;
}
--- 633,640 ----
*nodePtr = copyObject(n);
else
*nodePtr = n;
! if (nodeTag(*nodePtr) == T_Var)
! ((Var *) *nodePtr)->varlevelsup = this_varlevelsup;
}
*modified = TRUE;
}

--
Tatsuo Ishii
t-ishii(at)sra(dot)co(dot)jp

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-09-11 14:10:45 Re: [HACKERS] more on int8
Previous Message Andreas Zeugswetter 1998-09-11 09:08:06 AW: [HACKERS] Names that suddenly include an OID