Problem with DROP ROLE

From: Brice André <brice(at)famille-andre(dot)be>
To: pgsql-sql(at)postgresql(dot)org
Subject: Problem with DROP ROLE
Date: 2011-10-19 10:11:06
Message-ID: CAOBG12mCa-07QW==228ieiosV_TKWK8wAowAhW+kXSkyVkfY9Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hello everyone,

I would want to implement an SQL query where I would be able to suppress all
information from a registered user. I am currenlty able to suppress
everything except the user role. The name of the role is present in a table
and so, I would want to perform something like this :
DROP ROLE (SELECT ...)
but this is not considered as valid, as DROP ROLE is expecting a name and
not a text field. So, I tried the following, but with no success :
DROP ROLE CAST((SELECT...) AS name)

So, does someone knows how to handle this problem ?

Regards,
Brice

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Andreas Kretschmer 2011-10-19 11:32:32 Re: Problem with DROP ROLE
Previous Message Basil Bourque 2011-10-19 08:13:44 Re: new user on mac