Created
June 14, 2011 06:11
-
-
Save umitanuki/1024412 to your computer and use it in GitHub Desktop.
create 1000 inherit table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
do $$ declare declare begin for i in 1 .. 1000 loop execute 'create table myt' || i || '(check (id between ' || (i * 99) || ' and ' || (i * 100) || ' )) inherits(size_m)'; end loop; end; $$; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment