vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi list, I updated pg_converion to set the condefault=false where I need it. pg_dumpall does NOT write that table out and therefore it is not possible to restore, this update get lost. Anybody know if this is an error or has an explanation why it has to work this way? Background: I have created my own conversion with CREATE DEFAULT CONVERSION ... http://www.postgresql.org/docs/8.3/i...onversion.html > There should be only one default encoding in a schema for the encoding pair Why can not the "CREATE DEFAULT CONVERSION ..." a) return with an error if there is another default conversion existing or b) silently set any other default to false for the confor- and conto-encoding involved? Regards, Michael -- Wincor Nixdorf International GmbH Sitz der Gesellschaft: Paderborn Registergericht Paderborn HRB 3507 Geschäftsführer: Eckard Heidloff (Vorsitzender), Stefan Auerbach, Dr. Jürgen Wunram Vorsitzender des Aufsichtsrats: Karl-Heinz Stiller Steuernummer: 339/5884/0020 - Ust-ID Nr.: DE812927716 - WEEE-Reg.-Nr. DE44477193 Diese E-Mail enthält vertrauliche Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. This e-mail may contain confidential information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general |
| |||
| Michael Enke <michael.enke@wincor-nixdorf.com> writes: > I updated pg_converion to set the condefault=false where I need it. Why are you needing to replace an existing default conversion? Do we have a bug in it? > pg_dumpall does NOT write that table out and therefore it is not possible to restore, this update get lost. pg_dump does not (and shouldn't) dump system-defined objects. It has no way to know that you modified the definition of such an object. > Why can not the "CREATE DEFAULT CONVERSION ..." > a) return with an error if there is another default conversion existing or AFAICS it does. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general |
| ||||
| On Wed, May 07, 2008 at 05:38:12PM -0400, Tom Lane wrote: > Michael Enke <michael.enke@wincor-nixdorf.com> writes: > > I updated pg_converion to set the condefault=false where I need it. > > Why are you needing to replace an existing default conversion? > Do we have a bug in it? He doesn't really. See his message two days ago about wanting to add another charset. Since postgresql doesn't support that he hijacked an existing one and replaced the conversion functions. And they're not saved/restored. Have a nice day, -- Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/ > Please line up in a tree and maintain the heap invariant while > boarding. Thank you for flying nlogn airlines. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIIiI9IB7bNG8LQkwRAuxJAJ9WfQvpDN5nNvYpxrrzK6 MQYNPQKgCdEi8M +RKvYhYdkKtxjmt3mvRE/Sk= =QEox -----END PGP SIGNATURE----- |