Re: problems updating table

From: "Johnson, Shaunn" <SJohnson6(at)bcbsm(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: problems updating table
Date: 2002-12-12 22:03:09
Message-ID: 73309C2FDD95D11192E60008C7B1D5BB04C74399@snt452.corp.bcbsm.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

--thanks for the reply.

--my first thought was that somehow there is a
--foreign key or maybe a trigger between the two
--tables, but, i'm not really sure of what all that means.

--i am looking at pg_trigger and i see something like this:

[snip from pg_trigger]

460078110 | RI_ConstraintTrigger_460078127 | 1644 | 21 | t |
t | <unnamed> | 16871088
5 | f | f | 6 | |
<unnamed>\000hmp_mbrhlth\000sys_users\000UNSPECIFIED\000username\00
0username\000
168710885 | RI_ConstraintTrigger_460078129 | 1654 | 9 | t
| t | <unnamed> | 46007811
0 | f | f | 6 | |
<unnamed>\000hmp_mbrhlth\000sys_users\000UNSPECIFIED\000username\00
0username\000
168710885 | RI_ConstraintTrigger_460078131 | 1655 | 17 | t
| t | <unnamed> | 46007811
0 | f | f | 6 | |
<unnamed>\000hmp_mbrhlth\000sys_users\000UNSPECIFIED\000username\00
0username\000

[/snip trigger]

--but, i'm not sure as to how this effect editing / updating sys_users.

--can someone point to the docs that explain why i can't update a table
--when there is a trigger set for that same table? i don't think i'm
--even close in explaining myself, but basically: what does triggers have
--to do with anything?

--thanks!

-X

-----Original Message-----
From: Stephan Szabo [mailto:sszabo(at)megazone23(dot)bigpanda(dot)com]

> test=> update sys_users set "username"='MARISSA' where
"username"='marissa';
> ERROR: hmp_mbrhlth: Permission denied.
>
> test=> \dt hmp_mbrhlth
> List of relations
> Name | Type | Owner
> -------------+-------+-------
> hmp_mbrhlth | table | hmp
>
> [/snip error]
>
>
> I've done this before and I believe I'm using the correct
> syntax. I've even tried to get brave and do it as 'postgres'
> and I still have errors.
>
> What am I missing?

How are sys_users and hmp_mbrhlth defined? Specifically, are there
any triggers, rules or foreign keys potentially involved?

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2002-12-12 22:03:56 Re: CLUSTER command
Previous Message Thomas O'Connell 2002-12-12 21:58:09 time and current_time default formats