Re: vacuum full for all databases
От | Ilia Chipitsine |
---|---|
Тема | Re: vacuum full for all databases |
Дата | |
Msg-id | 20040902141204.M15260@office.paramon.ru обсуждение исходный текст |
Ответ на | Re: vacuum full for all databases (Richard Huxton <dev@archonet.com>) |
Список | pgsql-general |
> Ilia Chipitsine wrote: > > Dear Sirs > > > > I'm about to write plpgsql function which will "vacuum full" all existing > > databases. Below is an example how to get list of databases. > > > > What should I write instead of "raise notice" ? > > > raise notice ''datname = %'',list.datname; > > Something like: > EXECUTE ''VACUUM FULL '' || list.datname; "vacuum full" accepts relation name, not database name $ psql -U pgsql template1 Welcome to psql 7.4.2, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \h for help with SQL commands \? for help on internal slash commands \g or terminate with semicolon to execute query \q to quit template1=# vacuum full site_b170; ERROR: relation "site_b170" does not exist template1=# > > -- > Richard Huxton > Archonet Ltd >
В списке pgsql-general по дате отправления: