pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
alter pg_shadow
2+ messages / 2 participants
[nested] [flat]

* alter pg_shadow
@ 2000-11-09 06:26 pgsql-sql <pgsql-sql@fc.emc.com.ph>
  2000-11-09 15:53 ` Re: [SQL] alter pg_shadow Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 1 reply; 2+ messages in thread

From: pgsql-sql @ 2000-11-09 06:26 UTC (permalink / raw)
  To: pgsql-sql; pgsql-admin@postgresql.org

Is it safe to rename 'postgres' to any__name?

like

update pg_shadow set usename = 'any__name' where usename = 'postgres';


Sherwin





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: [SQL] alter pg_shadow
  2000-11-09 06:26 alter pg_shadow pgsql-sql <pgsql-sql@fc.emc.com.ph>
@ 2000-11-09 15:53 ` Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2000-11-09 15:53 UTC (permalink / raw)
  To: pgsql-sql <pgsql-sql@fc.emc.com.ph>; +Cc: pgsql-sql; pgsql-admin@postgresql.org

pgsql-sql writes:

> Is it safe to rename 'postgres' to any__name?
> 
> like
> 
> update pg_shadow set usename = 'any__name' where usename = 'postgres';

If you do that then you won't be able to call the standalone backend
anymore ("postgres"), which authenticates you by comparing this name to
the current Unix user name, but this is something you may or may not care
about.

Better would be if you create a Unix user "any__name" and change the
ownership of the PGDATA files to that user.

Better yet, leave the guy alone and create another superuser account with
a name of your choice.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2000-11-09 15:53 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-11-09 06:26 alter pg_shadow pgsql-sql <pgsql-sql@fc.emc.com.ph>
2000-11-09 15:53 ` Peter Eisentraut <peter_e@gmx.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox