By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,949 Members | 889 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,949 IT Pros & Developers. It's quick & easy.

How to split one table to many by column

P: 1
Hi,

I would like to ask what is the best approach to split and migrate a big table to X smaller tables using PL/pgsql.
Running the following "select * from tab1 where col1=Z into tab2" X times, seems not be efficient. I would like to reduce table scans.

Thanks,
Dec 18 '12 #1
Share this Question
Share on Google+
1 Reply


Rabbit
Expert Mod 10K+
P: 12,347
Why would you want to denormalize the data?
Dec 18 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.