| From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
|---|---|
| To: | Carlo Stonebanks <stonec(dot)register(at)sympatico(dot)ca> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Search system catalog for mystery type |
| Date: | 2009-11-04 20:57:34 |
| Message-ID: | 20091104205734.GJ3531@alvh.no-ip.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Carlo Stonebanks wrote:
> When I try the following command:
> ALTER TABLE mdx_core.audit_impt RENAME TO _audit_impt;
>
> I get the error message:
>
> ERROR: type "_audit_impt" already exists
> SQL state: 42710
Probably the easiest way around this is to use two underscores instead
of one:
ALTER TABLE mdx_core.audit_impt RENAME TO __audit_impt;
Or any other char for that matter -- you picked the only one that would
cause a problem. Even a space should be fine:
ALTER TABLE mdx_core.audit_impt RENAME TO " audit_impt";
(Not sure I can recommend this though)
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Raimon Fernandez | 2009-11-04 21:41:53 | Where I can find "SSL specification"? |
| Previous Message | Tom Lane | 2009-11-04 20:32:29 | Re: Search system catalog for mystery type |