Unix Technical Forum

Re: Schema move for opclasses, operator and conversions

This is a discussion on Re: Schema move for opclasses, operator and conversions within the Pgsql Patches forums, part of the PostgreSQL category; --> Bernd Helmle <mailings@oopsware.de> writes: > Please find attached a patch that allows operator classes, operator and > conversions > ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Patches

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 12:41 AM
Tom Lane
 
Posts: n/a
Default Re: Schema move for opclasses, operator and conversions

Bernd Helmle <mailings@oopsware.de> writes:
> Please find attached a patch that allows operator classes, operator and
> conversions
> to be moved between schemas. Regression and documentation patch included.


Not to be unkind, but is this feature actually worth the code space?
I can barely see a use case for relocating operators, and as for the
other two, who's ever going to use them?

I understand about orthogonality and all that, but we have limited
manpower, and every thousand lines of code costs us ongoing maintenance
effort whether it's ever used in the field or not.

What I'd love to see is a patch that *removes* a few thousand lines
of code by finding a way to do this just once for all object types...

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-18-2008, 12:41 AM
Bernd Helmle
 
Posts: n/a
Default Re: Schema move for opclasses, operator and conversions



--On Donnerstag, Juni 01, 2006 23:03:39 -0400 Tom Lane <tgl@sss.pgh.pa.us>
wrote:

> Not to be unkind,


Don't worry

< but is this feature actually worth the code space?
> I can barely see a use case for relocating operators, and as for the
> other two, who's ever going to use them?
>


Well, i thought it would be useful for people which are going to reorganize
an entire database schema. Since we have schema move capabilities for
tables, functions, sequences et al., someone could then easily setup a
script to move
an entire schema to a new one.

> I understand about orthogonality and all that, but we have limited
> manpower, and every thousand lines of code costs us ongoing maintenance
> effort whether it's ever used in the field or not.
>
> What I'd love to see is a patch that *removes* a few thousand lines
> of code by finding a way to do this just once for all object types...


so something like ALTER SCHEMA schema MOVE OBJECTS newschema?
Sounds like a reasonable idea....

--
Thanks

Bernd

---------------------------(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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-18-2008, 12:41 AM
Peter Eisentraut
 
Posts: n/a
Default Re: Schema move for opclasses, operator and conversions

Am Freitag, 2. Juni 2006 10:11 schrieb Bernd Helmle:
> so something like ALTER SCHEMA schema MOVE OBJECTS newschema?
> Sounds like a reasonable idea....


I don't think the syntax should be altered. But a way to factor all these
common activities like moving, renaming, owner-altering for N classes of
objects would be really appreciated.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:19 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com