Re: pg_dump: SQL command failed
От | Robert Haas |
---|---|
Тема | Re: pg_dump: SQL command failed |
Дата | |
Msg-id | CA+Tgmoaw3mkfSAGN=ujBZKxbUcjrPBgeBL3QHE1rWEVaDbraZQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: pg_dump: SQL command failed (Thangalin <thangalin@gmail.com>) |
Список | pgsql-bugs |
On Thu, May 24, 2012 at 8:37 PM, Thangalin <thangalin@gmail.com> wrote: > Hi, Robert. > > $ psql --version > psql (PostgreSQL) 9.1.2 > > D J [rhaas ~]$ createdb superdatabase [rhaas ~]$ psql superdatabase Line style is old-ascii. psql (9.1.2) Type "help" for help. superdatabase=# create schema superschema; CREATE SCHEMA superdatabase=# CREATE EXTENSION unaccent; CREATE EXTENSION superdatabase=# CREATE OR REPLACE FUNCTION superschema.unaccent_text(text) superdatabase-# RETURNS text AS superdatabase-# $BODY$ superdatabase$# -- unaccent is STABLE, but the indexes must use IMMUTABLE functions. superdatabase$# SELECT unaccent($1); superdatabase$# $BODY$ superdatabase-# LANGUAGE sql IMMUTABLE superdatabase-# COST 1; CREATE FUNCTION superdatabase=# \q [rhaas ~]$ pg_dump -n superschema --inserts superdatabase > superduper.sql I tried a few other combinations, but I can't reproduce an error in pg_dump no matter what I try. Maybe you're leaving out a step or two? -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
В списке pgsql-bugs по дате отправления: