Search Postgresql Archives

Re: PL/pgSQL Copy data from one table to another

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



George Ant wrote
> Hey Guys, 
> 
> Thank you for your replies! Your suggestions worked fine!! :) Also my code
> looks a lot cleaner now! 
> 
> Kind Regards,
> George Ant.

Have you considered just creating a view, or even retrieval functions, the
generate these "object forms" on the fly instead of altering your database
schema?  Using arrays for master-detail relationships is typically
considered wrong and is definitely non-relational.  Your application should
not dictate schema design to this level generally but instead you should add
an O-R layer where needed.

David J.








--
View this message in context: http://postgresql.1045698.n5.nabble.com/PL-pgSQL-Copy-data-from-one-table-to-another-tp5790663p5791096.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux