Обсуждение: How to change database owner in PostgreSQL 7.4?

Поиск
Список
Период
Сортировка

How to change database owner in PostgreSQL 7.4?

От
frank church
Дата:
Hi guys,

What is the command change database owner in PostgreSQL 7.4?



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



Re: How to change database owner in PostgreSQL 7.4?

От
Andreas Kretschmer
Дата:
frank church <pgsql@adontendev.net> schrieb:

> Hi guys,
> 
> What is the command change database owner in PostgreSQL 7.4?

ALTER DATABASE foo OWNER TO blob;

In general: start psql and type  '\h alter database', and, more general,
'\h' and '\?'


HTH, Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°


Re: How to change database owner in PostgreSQL 7.4?

От
frank church
Дата:
Quoting Andreas Kretschmer <akretschmer@spamfence.net>:

> frank church <pgsql@adontendev.net> schrieb:
>
> > Hi guys,
> >
> > What is the command change database owner in PostgreSQL 7.4?
>
> ALTER DATABASE foo OWNER TO blob;

I tried that and it didn't work. That command appears to be available only in
8.0. Is there  a way of updating the system tables to change it?


> In general: start psql and type  '\h alter database', and, more general,
> '\h' and '\?'
>
>
> HTH, Andreas
> --
> Really, I'm not out to destroy Microsoft. That will just be a completely
> unintentional side effect. (Linus Torvalds)
> Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
>        choose an index scan if your joining column's datatypes do not
>        match
>




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.