hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iw...@apache.org
Subject [20/30] incubator-hawq git commit: HAWQ-878. Add googletest cases for the ao snappy compression support.
Date Thu, 30 Jun 2016 03:01:55 GMT
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/82843700/src/test/feature/ao/ans/ao_wt_partsnappy8192.ans
----------------------------------------------------------------------
diff --git a/src/test/feature/ao/ans/ao_wt_partsnappy8192.ans b/src/test/feature/ao/ans/ao_wt_partsnappy8192.ans
new file mode 100644
index 0000000..76844ef
--- /dev/null
+++ b/src/test/feature/ao/ans/ao_wt_partsnappy8192.ans
@@ -0,0 +1,937 @@
+-- start_ignore
+SET SEARCH_PATH=TestAOSnappy_Partition8192;
+SET
+-- end_ignore
+-- @author yaoj2
+-- @description AO compression
+-- @created 2013-08-06 23:59:11
+-- @modified 2013-08-06 23:59:11
+-- @tags HAWQ Storage ao_wt
+--
+-- Drop table if exists
+--
+DROP TABLE if exists ao_wt_partsnappy8192_1 cascade;
+psql:/tmp/TestAOSnappy_Partition8192.sql:13: NOTICE:  table "ao_wt_partsnappy8192_1" does not exist, skipping
+DROP TABLE
+DROP TABLE if exists ao_wt_partsnappy8192_1_uncompr cascade;
+psql:/tmp/TestAOSnappy_Partition8192.sql:15: NOTICE:  table "ao_wt_partsnappy8192_1_uncompr" does not exist, skipping
+DROP TABLE
+--
+-- Create table
+--
+CREATE TABLE ao_wt_partsnappy8192_1 
+	(id SERIAL,a1 int,a2 char(5),a3 numeric,a4 boolean DEFAULT false ,a5 char DEFAULT 'd',a6 text,a7 timestamp,a8 character varying(705),a9 bigint,a10 date,a11 varchar(600),a12 text,a13 decimal,a14 real,a15 bigint,a16 int4 ,a17 bytea,a18 timestamp with time zone,a19 timetz,a20 path,a21 box,a22 macaddr,a23 interval,a24 character varying(800),a25 lseg,a26 point,a27 double precision,a28 circle,a29 int4,a30 numeric(8),a31 polygon,a32 date,a33 real,a34 money,a35 cidr,a36 inet,a37 time,a38 text,a39 bit,a40 bit varying(5),a41 smallint,a42 int )
+ WITH (appendonly=true, orientation=row) distributed randomly Partition by range(a1) (start(1)  end(5000) every(1000) 
+ WITH (appendonly=true, orientation=row,compresstype=snappy,blocksize=8192));
+psql:/tmp/TestAOSnappy_Partition8192.sql:23: NOTICE:  CREATE TABLE will create implicit sequence "ao_wt_partsnappy8192_1_id_seq" for serial column "ao_wt_partsnappy8192_1.id"
+psql:/tmp/TestAOSnappy_Partition8192.sql:23: NOTICE:  CREATE TABLE will create partition "ao_wt_partsnappy8192_1_1_prt_1" for table "ao_wt_partsnappy8192_1"
+psql:/tmp/TestAOSnappy_Partition8192.sql:23: NOTICE:  CREATE TABLE will create partition "ao_wt_partsnappy8192_1_1_prt_2" for table "ao_wt_partsnappy8192_1"
+psql:/tmp/TestAOSnappy_Partition8192.sql:23: NOTICE:  CREATE TABLE will create partition "ao_wt_partsnappy8192_1_1_prt_3" for table "ao_wt_partsnappy8192_1"
+psql:/tmp/TestAOSnappy_Partition8192.sql:23: NOTICE:  CREATE TABLE will create partition "ao_wt_partsnappy8192_1_1_prt_4" for table "ao_wt_partsnappy8192_1"
+psql:/tmp/TestAOSnappy_Partition8192.sql:23: NOTICE:  CREATE TABLE will create partition "ao_wt_partsnappy8192_1_1_prt_5" for table "ao_wt_partsnappy8192_1"
+CREATE TABLE
+--
+-- Insert data to the table
+--
+ INSERT INTO ao_wt_partsnappy8192_1(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) values(generate_series(1,20),'M',2011,'t','a','This is news of today: Deadlock between Republicans and Democrats over how best to reduce the U.S. deficit, and over what period, has blocked an agreement to allow the raising of the $14.3 trillion debt ceiling','2001-12-24 02:26:11','U.S. House of Representatives Speaker John Boehner, the top Republican in Congress who has put forward a deficit reduction plan to be voted on later on Thursday said he had no control over whether his bill would avert a credit downgrade.',generate_series(2490,2505),'2011-10-11','The Republican-controlled House is tentatively scheduled to vote on Boehner proposal this afternoon at around 6 p.m. EDT (2200 GMT). The main Republican vote counter in the House, Kevin McCarthy, would not say if there were enough votes to
  pass the bill.','WASHINGTON:House Speaker John Boehner says his plan mixing spending cuts in exchange for raising the nations $14.3 trillion debt limit is not perfect but is as large a step that a divided government can take that is doable and signable by President Barack Obama.The Ohio Republican says the measure is an honest and sincere attempt at compromise and was negotiated with Democrats last weekend and that passing it would end the ongoing debt crisis. The plan blends $900 billion-plus in spending cuts with a companion increase in the nations borrowing cap.','1234.56',323453,generate_series(3452,3462),7845,'0011','2005-07-16 01:51:15+1359','2001-12-13 01:51:15','((1,2),(0,3),(2,1))','((2,3)(4,5))','08:00:2b:01:02:03','1-2','Republicans had been working throughout the day Thursday to lock down support for their plan to raise the nations debt ceiling, even as Senate Democrats vowed to swiftly kill it if passed.','((2,3)(4,5))','(6,7)',11.222,'((4,5),7)',32,3214,'(1,0,2,3)','2
 010-02-21',43564,'$1,000.00','192.168.1','126.1.3.4','12:30:45','Johnson & Johnsons McNeil Consumer Healthcare announced the voluntary dosage reduction today. Labels will carry new dosing instructions this fall.The company says it will cut the maximum dosage of Regular Strength Tylenol and other acetaminophen-containing products in 2012.Acetaminophen is safe when used as directed, says Edwin Kuffner, MD, McNeil vice president of over-the-counter medical affairs. But, when too much is taken, it can cause liver damage.The action is intended to cut the risk of such accidental overdoses, the company says in a news release.','1','0',12,23); 
+INSERT 0 880
+ INSERT INTO ao_wt_partsnappy8192_1(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) values(generate_series(500,510),'F',2010,'f','b','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child','2001-12-25 02:22:11','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child',generate_series(2500,2516),'2011-10-12','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears wil
 l usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child The type integer is the usual choice, as it offers the best balance between range, storage size, and performance The type integer is the usual choice, as it offers the best balance between range, storage size, and performanceThe type integer is the usual choice, as it offers the best balance between range, storage size, and performanceThe type integer is the usual choice, as it offers the best balance between range, storage size, and performanceThe type integer ','1134.26',311353,generate_series(3982,3992),7885,'0101','2002-02-12 01:31:14+1344','2003-11-14 01:41:15','((1,1),(0,1),(1,1))','((2,1)(1,5))','08:00:2b:01:01:03','1-3','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child The types smallint, integer, and bigint store whole numbers, that is, num
 bers without fractional components, of various ranges. The types smallint, integer, and bigint store whole numbers, that is, numbers without fractional components, of various ranges. Attempts to store values outside of the allowed range will result in an errorThe types smallint, integer, and bigint store whole numbers, that is, numbers without fractional components, of various ranges.','((6,5)(4,2))','(3,6)',12.233,'((5,4),2)',12,3114,'(1,1,0,3)','2010-03-21',43164,'$1,500.00','192.167.2','126.1.1.1','10:30:55','Parents and other family members are always welcome at Stratford. After the first two weeks ofschool','0','1',33,44); 
+INSERT 0 187
+ INSERT INTO ao_wt_partsnappy8192_1(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) values(generate_series(500,525),'M',2010,'f','b','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child','2001-12-25 02:22:11','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child',generate_series(2500,2515),'2011-10-12','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears wil
 l usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child The bigint type might not function correctly on all platforms, since it relies on compiler support for eight-byte integers.The bigint type might not function correctly on all platforms, since it relies on compiler support for eight-byte integers.The bigint type might not function correctly on all platforms, since it relies on compiler support for eight-byte integers.The bigint type might not function correctly on all platforms, since it relies on compiler support ','1134.26',311353,generate_series(3892,3902),7885,'0101','2002-02-12 01:31:14+1344','2003-11-14 01:41:15','((1,1),(0,1),(1,1))','((2,1)(1,5))','08:00:2b:01:01:03','1-3','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child The type numeric can store numbers with up to 1000 digits of precision 
 and perform calculations exactly. It is especially recommended for storing monetary amounts and other quantities where exactness is required. However, arithmetic on numeric values is very slow compared to the integer types, or to the floating-point types described in the next section.The type numeric can store numbers with up to 1000 digits of precision and perform calculations exactly.','((6,5)(4,2))','(3,6)',12.233,'((5,4),2)',12,3114,'(1,1,0,3)','2010-03-21',43164,'$1,500.00','192.167.2','126.1.1.1','10:30:55','bit type data must match the length n exactly; it is an error to attempt to store shorter or longer','1','10',43,54); 
+INSERT 0 2288
+ INSERT INTO ao_wt_partsnappy8192_1(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) values(generate_series(600,625),'F',2011,'f','b','If the scale of a value to be stored is greater than the declared scale of the column, the system will round the value to the specified number of fractional digits. Then, if the number of digits to the left of the decimal point ','2001-11-24 02:26:11','bbffruikjjjk89kjhjjdsdsjflsdkfjowikfo;lwejkufhekusgfuyewhfkdhsuyfgjsdbfjhkdshgciuvhdskfhiewyerwhkjehriur687687rt3ughjgd67567tcghjzvcnzfTYr7tugfTRE#$#^%*GGHJFTEW#RUYJBJHCFDGJBJGYrythgfT^&^tjhE655ugHD655uVtyr%^uygUYT&^R%^FJYFHGF',2802,'2011-11-12','Through our sbdfjdsbkfndjkshgifhdsn c  environment, we encourageyour guwr6tojsbdjht8y^W%^GNBMNBHGFE^^, emotional maturity, and a lifetime love of learning.Sign and submit the Stratford enrollment contract and prepaid tuition.Sign and submit the paymen
 t authorizahrqwygjashbxuyagsu.','It is very typical for preschool and pre-kindergarten students to experience separation anxietyduring the first few days of school. Please visit the school with your child prior to the first dayof class to help him/her become acquainted with the new environment.As often as possible,speak positively and with encouragement to your child about his/her new school experience.Focus on the excitement and fun of , not the apprehension.It is important to discuss the school procedures with your child. Inform your child that youoom with him','1231.16',121451,4001,2815,'0110','2007-02-12 03:55:15+1317','2011-12-10 11:54:12','((2,2),(1,3),(1,1))','((1,3)(6,5))','07:00:2b:02:01:04','3-2','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the cmnsbvduytfrw67ydwhg uygyth your child','((1,2)(6,7))','(9,1)',12.233,'((2,1),6)',12,1114,'(3,1,2,0)','2011-03-11',22564,'$6,0
 50.00','192.168.2','126.4.4.4','12:31:25','Parents and other family members are always welcome at Stratford. After the first two weeks ofschool, we encourage you to stop by and visit any time you like. When visiting, please berespectful of the classroom environment and do not disturb the students or teachers. Prior toeach visit, we require all visidbsnfuyewfudsc,vsmckposjcofice and obtain a visit sticker to be worn while visiting.As a safety precaution, the Stratford playgrounds are closed for outside visitation during normal school hours. We thank you for your cooperation.','1','1',13,24); 
+INSERT 0 26
+ INSERT INTO ao_wt_partsnappy8192_1(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) values(generate_series(1500,1525),'M',2011,'t','b','At Stratford, we believe all children love to learn and that success in school and life depends on developing a strong foundation for learning early in life gsdgdsfoppkhgfshjdgksahdiusahdksahdksahkdhsakdhskahkhasdfu','2001-11-24 02:26:11','ttttttttttttttttrrrrrrrrrrrrrrrrrrrrrtttttttttttttttttttttttttwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwttttttttttttttttttttttttttttttwwwwwwwwwwwwwwwwwwwwweeeeeeeeeeeeeeeeeeeeeeeeeeeeeettttttttttttttttttttttttttttteeeeeeeeeeeeeeeeeeeeeeeeeeedddddddd',2572,'2011-11-12','Through our stimulating dnvuy9efoewlhrf78we68bcmnsbment, we enhsdfiyeowlfdshfkjsdhoifuoeifdhsjvdjnvbhjdfgusftsdbmfnbdstional maturity, and a lifetime loveof learning.Sign and submit the Suythjrbuyhjngy78yuhjkhgvfderujhbdfxrtyuhjcfxdserwhuc  dvfdfo
 fdgjkfrtiomn,eriokljnhbgfdhjkljhgfrtuyhgvform (if required).','It is very typical for preschool and pre-kindergarten students to experience separation anxietyduring the first few days of school. Please visit the school with your child prior to the first dayof class to help him/her become acquainted with the new environment.As often as possible,speak positively and with encouragement to your child about his/her new school experience.Focus on the excitement and fun of school, not the apprehensmnbvcxzasdfghjkoiuytre456789hfghild that you willnot be staying in the classroom with him','1231.16',121451,4001,2815,'0110','2007-02-12 03:55:15+1317','2011-12-10 11:54:12','((2,2),(1,3),(1,1))','((1,3)(6,5))','07:00:2b:02:01:04','3-2','poiuytrewqtgvsxcvbniujhbgvdfrgtyhujjhndcvuhj, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the clasnbdsvuytg uhguyybvhcd with your child','((1,2)(6,7))','(9,1)',12.233,'((2,1),6)',12,1114,'(3,1,2,0)','2011-03-11',22564,'$6,05
 0.00','192.168.2','126.4.4.4','12:31:25','Parents and other family members are always welcome at Stratford. After the first two weeks ofschool, we encourage you to stop b#%J,mbj756HNM&%.jlyyttlnvisiting, please berespectful of the classroom environment and do not disturb the students or teachers. Prior toeach visit, we require all visits to sign in at the school offbduysfifdsna v worn while visiting.As a safety precaution, the Stratford playgrounds are closed for outside visitation during normal school hours. We thank you for your cooperation.','0','1',13,24); 
+INSERT 0 26
+ INSERT INTO ao_wt_partsnappy8192_1(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) values(generate_series(3300,3455),'F',2011,'f','b','Numeric values are physically stored without any extra leading or trailing zeroes. Thus, the declared precision and scale of a column are maximums, not fixed allocations jwgrkesfjkdshifhdskjnbfnscgffiupjhvgfdatfdjhav','2002-12-24 02:26:10','uewrtuewfhbdshmmfbbhjjjjjjjjjjjjjjjjjjjjjjjjjewjjjjjjjjjjjjjjsb ffffffffffffffeyyyyyyyyyyyyyyyybcj  hgiusyyyy7777777777eeeeeeeeeeewiuhgsuydte78wt87rwetug7666666we7w86e7w6e87w6ew786ew8e678w6e8w6e8w6e8we6w7e827e6238272377hsys6w6yehsy6wh',2552,'2011-11-12','Through odnviudfygojlskhiusdyfdslfun classroom environment, we encourageyour child to achieve self-confidence, emotional maturity, and a lifetime love of learning.Sign and submit the Stratford enrollment contract and prepaid tuition.Sign and submit the 
 payment authorization form (if required).','It is very typical for presclsjhfdiudhskjfnds,vnc,svljsdaon anxietyduring the first few days of school. Please visimngfrtetyuiujnsbvcrdtr to the first dayof class to help him/her become acquainted with the nsfgsduaytf8fodshkfjhdw786%$%#^&&MBHJFY*IUHjhghgasd76ewhfewagement to your child about his/her new school experience.Focus on the excitement and fun of school, not the apprehension.It is important to discuss the school procedures with yhtyrt$#%^*&*HVGfu8jkGUYT$ujjtygdkfghjklfdhgjkfndkjghfdkgkfdge classroom with him','1231.16',121451,generate_series(5,25),2815,'0110','2007-02-12 03:55:15+1317','2011-12-10 11:54:12','((2,2),(1,3),(1,1))','((1,3)(6,5))','07:00:2b:02:01:04','3-2','Snjhgfytwuie4r893r7yhwdgt678iuhjgfr5678u school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child','((1,2)(6,7))','(9,1)',12.233,'((2,1),6)',12,1114,'(3,1,2,0)','2011-03
 -11',22564,'$6,050.00','192.168.2','126.4.4.4','12:31:25','Parents and other family members are always welcome at Stratford. After the first two weeks ofschool, we encourage you to stop  shasuymnsdjkhsayt6b bnftrrojmbmnctreiujmnb nbfyttojmn, please berespectful of the classroom environment and do not disturb the students or teachers. Prior toeach visit, we require all visitosdfiwe7r09e[wrwdhskcisitors sticker to be worn while visiting.As a safety precaution, the Stratford playgrounds are closed for outside visitation during normal school hours. We thank you for your cooperation.','0','1',13,24); 
+INSERT 0 1092
+ INSERT INTO ao_wt_partsnappy8192_1(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) values(generate_series(50,55),'M',2011,'f','b','Inexact means that some values cannot be converted exactly to the internal format and are stored as approximations, so that storing and printing back out hwgfrdjwpfidsbhfsyugdskbfkjshfihsdkjfhsjhayiuyihjhvghdhgfjhdva6h','2003-12-24 02:26:11','mjhsiury8w4r9834kfjsdhcjbjghsafre6547698ukljjhgftre4t@%$^&%*&DRTDHGGUY&*^*&(^Gfhe456543^RGHJFYTE%$#!@!~#$%TGJHIU(***$%#@TRFHJG%^$&^*&FHR^%$%UTGHffge45675786gfrtew43ehghjt^%&^86575675tyftyr6tfytr65edf564ttyr565r64tyyyyr4e65tyyyyyyyyyt76',generate_series(700,725),'2011-11-11','Through87678574678uygjr565ghjenvironment, we encourageyour child to achieve ssbfuwet8ryewsjfnjksdhkcmxznbcnsfyetrusdgfdsbhjca lifetime love of learning.Sign and submit the Stratford enrollment contract and prepaid klhgiueffhlskvhfgxtf
 yuh form (if required).','It is very typical for preschool and pre-kindergarten students to experience separation anxietyduring the first few days of school. Please visit thuytrewfghjkjv cbvnmbvcrte78uhjgnmnbvc5678jnm 4587uijk vacquainted with the new environment.Ajfhgdsufdsjfldsbfcjhgdshhhhhhhhuyhgbn sfsfsdur child about his/her new school experience.Focus on the excitement and fun of school, not the apprehension.It is important to discuss the school procedures with your child. Inform your child that you willnot be stayisdfdsgfuyehfihdfiyiewuyfiuwhfng in the classroom with him','1231.16',121451,4001,2815,'0110','2007-02-12 03:55:15+1317','2011-12-10 11:54:12','((2,2),(1,3),(1,1))','((1,3)(6,5))','07:00:2b:02:01:04','3-2','Some students may need time to adjust to school.jhge7fefvjkehguejfgdkhjkjhgowu09f8r9wugfbwjhvuyTears will usually disappear after Mommy and  Daddy leave the classroom. bdys8snssbss97j with your child','((1,2)(6,7))','(9,1)',12.233,'((2,1),6)',12,1114,'(3,1,2,0)','
 2011-03-11',22564,'$6,050.00','192.168.2','126.4.4.4','12:31:25','Parents and other family members are always welcome at Stratford. After the first two weeks ofschool, jge7rty3498rtkew mfuhqy970qf wjhg8er7ewrjmwe jhg When visiting, please berespectful of the classroom environment and do not disturb the students or teachers. Prior toeach visit, we require all visits to sign in at the school objjcshgifisdcnskjcbdiso be worn while visiting.As a safety precaution, the Stratford playgrounds are closed for outside visitation during normal school hours. We thank you for your cooperation.','0','1',13,24); 
+INSERT 0 78
+--Create Uncompressed table of same schema definition
+CREATE TABLE ao_wt_partsnappy8192_1_uncompr(id SERIAL,a1 int,a2 char(5),a3 numeric,a4 boolean DEFAULT false ,a5 char DEFAULT 'd',a6 text,a7 timestamp,a8 character varying(705),a9 bigint,a10 date,a11 varchar(600),a12 text,a13 decimal,a14 real,a15 bigint,a16 int4 ,a17 bytea,a18 timestamp with time zone,a19 timetz,a20 path,a21 box,a22 macaddr,a23 interval,a24 character varying(800),a25 lseg,a26 point,a27 double precision,a28 circle,a29 int4,a30 numeric(8),a31 polygon,a32 date,a33 real,a34 money,a35 cidr,a36 inet,a37 time,a38 text,a39 bit,a40 bit varying(5),a41 smallint,a42 int) WITH (appendonly=true, orientation=row) distributed randomly Partition by range(a1) (start(1)  end(5000) every(1000)) ;
+psql:/tmp/TestAOSnappy_Partition8192.sql:47: NOTICE:  CREATE TABLE will create implicit sequence "ao_wt_partsnappy8192_1_uncompr_id_seq" for serial column "ao_wt_partsnappy8192_1_uncompr.id"
+psql:/tmp/TestAOSnappy_Partition8192.sql:47: NOTICE:  CREATE TABLE will create partition "ao_wt_partsnappy8192_1_uncompr_1_prt_1" for table "ao_wt_partsnappy8192_1_uncompr"
+psql:/tmp/TestAOSnappy_Partition8192.sql:47: NOTICE:  CREATE TABLE will create partition "ao_wt_partsnappy8192_1_uncompr_1_prt_2" for table "ao_wt_partsnappy8192_1_uncompr"
+psql:/tmp/TestAOSnappy_Partition8192.sql:47: NOTICE:  CREATE TABLE will create partition "ao_wt_partsnappy8192_1_uncompr_1_prt_3" for table "ao_wt_partsnappy8192_1_uncompr"
+psql:/tmp/TestAOSnappy_Partition8192.sql:47: NOTICE:  CREATE TABLE will create partition "ao_wt_partsnappy8192_1_uncompr_1_prt_4" for table "ao_wt_partsnappy8192_1_uncompr"
+psql:/tmp/TestAOSnappy_Partition8192.sql:47: NOTICE:  CREATE TABLE will create partition "ao_wt_partsnappy8192_1_uncompr_1_prt_5" for table "ao_wt_partsnappy8192_1_uncompr"
+CREATE TABLE
+--
+-- Insert to uncompressed table
+--
+ INSERT INTO ao_wt_partsnappy8192_1_uncompr(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) values(generate_series(1,20),'M',2011,'t','a','This is news of today: Deadlock between Republicans and Democrats over how best to reduce the U.S. deficit, and over what period, has blocked an agreement to allow the raising of the $14.3 trillion debt ceiling','2001-12-24 02:26:11','U.S. House of Representatives Speaker John Boehner, the top Republican in Congress who has put forward a deficit reduction plan to be voted on later on Thursday said he had no control over whether his bill would avert a credit downgrade.',generate_series(2490,2505),'2011-10-11','The Republican-controlled House is tentatively scheduled to vote on Boehner proposal this afternoon at around 6 p.m. EDT (2200 GMT). The main Republican vote counter in the House, Kevin McCarthy, would not say if there were enough 
 votes to pass the bill.','WASHINGTON:House Speaker John Boehner says his plan mixing spending cuts in exchange for raising the nations $14.3 trillion debt limit is not perfect but is as large a step that a divided government can take that is doable and signable by President Barack Obama.The Ohio Republican says the measure is an honest and sincere attempt at compromise and was negotiated with Democrats last weekend and that passing it would end the ongoing debt crisis. The plan blends $900 billion-plus in spending cuts with a companion increase in the nations borrowing cap.','1234.56',323453,generate_series(3452,3462),7845,'0011','2005-07-16 01:51:15+1359','2001-12-13 01:51:15','((1,2),(0,3),(2,1))','((2,3)(4,5))','08:00:2b:01:02:03','1-2','Republicans had been working throughout the day Thursday to lock down support for their plan to raise the nations debt ceiling, even as Senate Democrats vowed to swiftly kill it if passed.','((2,3)(4,5))','(6,7)',11.222,'((4,5),7)',32,3214,'(1,0,
 2,3)','2010-02-21',43564,'$1,000.00','192.168.1','126.1.3.4','12:30:45','Johnson & Johnsons McNeil Consumer Healthcare announced the voluntary dosage reduction today. Labels will carry new dosing instructions this fall.The company says it will cut the maximum dosage of Regular Strength Tylenol and other acetaminophen-containing products in 2012.Acetaminophen is safe when used as directed, says Edwin Kuffner, MD, McNeil vice president of over-the-counter medical affairs. But, when too much is taken, it can cause liver damage.The action is intended to cut the risk of such accidental overdoses, the company says in a news release.','1','0',12,23); 
+INSERT 0 880
+ INSERT INTO ao_wt_partsnappy8192_1_uncompr(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) values(generate_series(500,510),'F',2010,'f','b','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child','2001-12-25 02:22:11','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child',generate_series(2500,2516),'2011-10-12','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child','Some students may need time to adjust to school.For most children, the adjustment is quick. T
 ears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child The type integer is the usual choice, as it offers the best balance between range, storage size, and performance The type integer is the usual choice, as it offers the best balance between range, storage size, and performanceThe type integer is the usual choice, as it offers the best balance between range, storage size, and performanceThe type integer is the usual choice, as it offers the best balance between range, storage size, and performanceThe type integer ','1134.26',311353,generate_series(3982,3992),7885,'0101','2002-02-12 01:31:14+1344','2003-11-14 01:41:15','((1,1),(0,1),(1,1))','((2,1)(1,5))','08:00:2b:01:01:03','1-3','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child The types smallint, integer, and bigint store whole numbers, that
  is, numbers without fractional components, of various ranges. The types smallint, integer, and bigint store whole numbers, that is, numbers without fractional components, of various ranges. Attempts to store values outside of the allowed range will result in an errorThe types smallint, integer, and bigint store whole numbers, that is, numbers without fractional components, of various ranges.','((6,5)(4,2))','(3,6)',12.233,'((5,4),2)',12,3114,'(1,1,0,3)','2010-03-21',43164,'$1,500.00','192.167.2','126.1.1.1','10:30:55','Parents and other family members are always welcome at Stratford. After the first two weeks ofschool','0','1',33,44); 
+INSERT 0 187
+ INSERT INTO ao_wt_partsnappy8192_1_uncompr(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) values(generate_series(500,525),'M',2010,'f','b','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child','2001-12-25 02:22:11','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child',generate_series(2500,2515),'2011-10-12','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child','Some students may need time to adjust to school.For most children, the adjustment is quick. T
 ears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child The bigint type might not function correctly on all platforms, since it relies on compiler support for eight-byte integers.The bigint type might not function correctly on all platforms, since it relies on compiler support for eight-byte integers.The bigint type might not function correctly on all platforms, since it relies on compiler support for eight-byte integers.The bigint type might not function correctly on all platforms, since it relies on compiler support ','1134.26',311353,generate_series(3892,3902),7885,'0101','2002-02-12 01:31:14+1344','2003-11-14 01:41:15','((1,1),(0,1),(1,1))','((2,1)(1,5))','08:00:2b:01:01:03','1-3','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child The type numeric can store numbers with up to 1000 digits of pr
 ecision and perform calculations exactly. It is especially recommended for storing monetary amounts and other quantities where exactness is required. However, arithmetic on numeric values is very slow compared to the integer types, or to the floating-point types described in the next section.The type numeric can store numbers with up to 1000 digits of precision and perform calculations exactly.','((6,5)(4,2))','(3,6)',12.233,'((5,4),2)',12,3114,'(1,1,0,3)','2010-03-21',43164,'$1,500.00','192.167.2','126.1.1.1','10:30:55','bit type data must match the length n exactly; it is an error to attempt to store shorter or longer','1','10',43,54); 
+INSERT 0 2288
+ INSERT INTO ao_wt_partsnappy8192_1_uncompr(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) values(generate_series(600,625),'F',2011,'f','b','If the scale of a value to be stored is greater than the declared scale of the column, the system will round the value to the specified number of fractional digits. Then, if the number of digits to the left of the decimal point ','2001-11-24 02:26:11','bbffruikjjjk89kjhjjdsdsjflsdkfjowikfo;lwejkufhekusgfuyewhfkdhsuyfgjsdbfjhkdshgciuvhdskfhiewyerwhkjehriur687687rt3ughjgd67567tcghjzvcnzfTYr7tugfTRE#$#^%*GGHJFTEW#RUYJBJHCFDGJBJGYrythgfT^&^tjhE655ugHD655uVtyr%^uygUYT&^R%^FJYFHGF',2802,'2011-11-12','Through our sbdfjdsbkfndjkshgifhdsn c  environment, we encourageyour guwr6tojsbdjht8y^W%^GNBMNBHGFE^^, emotional maturity, and a lifetime love of learning.Sign and submit the Stratford enrollment contract and prepaid tuition.Sign and submit th
 e payment authorizahrqwygjashbxuyagsu.','It is very typical for preschool and pre-kindergarten students to experience separation anxietyduring the first few days of school. Please visit the school with your child prior to the first dayof class to help him/her become acquainted with the new environment.As often as possible,speak positively and with encouragement to your child about his/her new school experience.Focus on the excitement and fun of , not the apprehension.It is important to discuss the school procedures with your child. Inform your child that youoom with him','1231.16',121451,4001,2815,'0110','2007-02-12 03:55:15+1317','2011-12-10 11:54:12','((2,2),(1,3),(1,1))','((1,3)(6,5))','07:00:2b:02:01:04','3-2','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the cmnsbvduytfrw67ydwhg uygyth your child','((1,2)(6,7))','(9,1)',12.233,'((2,1),6)',12,1114,'(3,1,2,0)','2011-03-11',225
 64,'$6,050.00','192.168.2','126.4.4.4','12:31:25','Parents and other family members are always welcome at Stratford. After the first two weeks ofschool, we encourage you to stop by and visit any time you like. When visiting, please berespectful of the classroom environment and do not disturb the students or teachers. Prior toeach visit, we require all visidbsnfuyewfudsc,vsmckposjcofice and obtain a visit sticker to be worn while visiting.As a safety precaution, the Stratford playgrounds are closed for outside visitation during normal school hours. We thank you for your cooperation.','1','1',13,24); 
+INSERT 0 26
+ INSERT INTO ao_wt_partsnappy8192_1_uncompr(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) values(generate_series(1500,1525),'M',2011,'t','b','At Stratford, we believe all children love to learn and that success in school and life depends on developing a strong foundation for learning early in life gsdgdsfoppkhgfshjdgksahdiusahdksahdksahkdhsakdhskahkhasdfu','2001-11-24 02:26:11','ttttttttttttttttrrrrrrrrrrrrrrrrrrrrrtttttttttttttttttttttttttwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwttttttttttttttttttttttttttttttwwwwwwwwwwwwwwwwwwwwweeeeeeeeeeeeeeeeeeeeeeeeeeeeeettttttttttttttttttttttttttttteeeeeeeeeeeeeeeeeeeeeeeeeeedddddddd',2572,'2011-11-12','Through our stimulating dnvuy9efoewlhrf78we68bcmnsbment, we enhsdfiyeowlfdshfkjsdhoifuoeifdhsjvdjnvbhjdfgusftsdbmfnbdstional maturity, and a lifetime loveof learning.Sign and submit the Suythjrbuyhjngy78yuhjkhgvfderujhbdfxrtyuhjcfxdserwhuc
   dvfdfofdgjkfrtiomn,eriokljnhbgfdhjkljhgfrtuyhgvform (if required).','It is very typical for preschool and pre-kindergarten students to experience separation anxietyduring the first few days of school. Please visit the school with your child prior to the first dayof class to help him/her become acquainted with the new environment.As often as possible,speak positively and with encouragement to your child about his/her new school experience.Focus on the excitement and fun of school, not the apprehensmnbvcxzasdfghjkoiuytre456789hfghild that you willnot be staying in the classroom with him','1231.16',121451,4001,2815,'0110','2007-02-12 03:55:15+1317','2011-12-10 11:54:12','((2,2),(1,3),(1,1))','((1,3)(6,5))','07:00:2b:02:01:04','3-2','poiuytrewqtgvsxcvbniujhbgvdfrgtyhujjhndcvuhj, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the clasnbdsvuytg uhguyybvhcd with your child','((1,2)(6,7))','(9,1)',12.233,'((2,1),6)',12,1114,'(3,1,2,0)','2011-03-11',2256
 4,'$6,050.00','192.168.2','126.4.4.4','12:31:25','Parents and other family members are always welcome at Stratford. After the first two weeks ofschool, we encourage you to stop b#%J,mbj756HNM&%.jlyyttlnvisiting, please berespectful of the classroom environment and do not disturb the students or teachers. Prior toeach visit, we require all visits to sign in at the school offbduysfifdsna v worn while visiting.As a safety precaution, the Stratford playgrounds are closed for outside visitation during normal school hours. We thank you for your cooperation.','0','1',13,24); 
+INSERT 0 26
+ INSERT INTO ao_wt_partsnappy8192_1_uncompr(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) values(generate_series(3300,3455),'F',2011,'f','b','Numeric values are physically stored without any extra leading or trailing zeroes. Thus, the declared precision and scale of a column are maximums, not fixed allocations jwgrkesfjkdshifhdskjnbfnscgffiupjhvgfdatfdjhav','2002-12-24 02:26:10','uewrtuewfhbdshmmfbbhjjjjjjjjjjjjjjjjjjjjjjjjjewjjjjjjjjjjjjjjsb ffffffffffffffeyyyyyyyyyyyyyyyybcj  hgiusyyyy7777777777eeeeeeeeeeewiuhgsuydte78wt87rwetug7666666we7w86e7w6e87w6ew786ew8e678w6e8w6e8w6e8we6w7e827e6238272377hsys6w6yehsy6wh',2552,'2011-11-12','Through odnviudfygojlskhiusdyfdslfun classroom environment, we encourageyour child to achieve self-confidence, emotional maturity, and a lifetime love of learning.Sign and submit the Stratford enrollment contract and prepaid tuition.Sign and sub
 mit the payment authorization form (if required).','It is very typical for presclsjhfdiudhskjfnds,vnc,svljsdaon anxietyduring the first few days of school. Please visimngfrtetyuiujnsbvcrdtr to the first dayof class to help him/her become acquainted with the nsfgsduaytf8fodshkfjhdw786%$%#^&&MBHJFY*IUHjhghgasd76ewhfewagement to your child about his/her new school experience.Focus on the excitement and fun of school, not the apprehension.It is important to discuss the school procedures with yhtyrt$#%^*&*HVGfu8jkGUYT$ujjtygdkfghjklfdhgjkfndkjghfdkgkfdge classroom with him','1231.16',121451,generate_series(5,25),2815,'0110','2007-02-12 03:55:15+1317','2011-12-10 11:54:12','((2,2),(1,3),(1,1))','((1,3)(6,5))','07:00:2b:02:01:04','3-2','Snjhgfytwuie4r893r7yhwdgt678iuhjgfr5678u school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child','((1,2)(6,7))','(9,1)',12.233,'((2,1),6)',12,1114,'(3,1,2,0)',
 '2011-03-11',22564,'$6,050.00','192.168.2','126.4.4.4','12:31:25','Parents and other family members are always welcome at Stratford. After the first two weeks ofschool, we encourage you to stop  shasuymnsdjkhsayt6b bnftrrojmbmnctreiujmnb nbfyttojmn, please berespectful of the classroom environment and do not disturb the students or teachers. Prior toeach visit, we require all visitosdfiwe7r09e[wrwdhskcisitors sticker to be worn while visiting.As a safety precaution, the Stratford playgrounds are closed for outside visitation during normal school hours. We thank you for your cooperation.','0','1',13,24); 
+INSERT 0 1092
+ INSERT INTO ao_wt_partsnappy8192_1_uncompr(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) values(generate_series(50,55),'M',2011,'f','b','Inexact means that some values cannot be converted exactly to the internal format and are stored as approximations, so that storing and printing back out hwgfrdjwpfidsbhfsyugdskbfkjshfihsdkjfhsjhayiuyihjhvghdhgfjhdva6h','2003-12-24 02:26:11','mjhsiury8w4r9834kfjsdhcjbjghsafre6547698ukljjhgftre4t@%$^&%*&DRTDHGGUY&*^*&(^Gfhe456543^RGHJFYTE%$#!@!~#$%TGJHIU(***$%#@TRFHJG%^$&^*&FHR^%$%UTGHffge45675786gfrtew43ehghjt^%&^86575675tyftyr6tfytr65edf564ttyr565r64tyyyyr4e65tyyyyyyyyyt76',generate_series(700,725),'2011-11-11','Through87678574678uygjr565ghjenvironment, we encourageyour child to achieve ssbfuwet8ryewsjfnjksdhkcmxznbcnsfyetrusdgfdsbhjca lifetime love of learning.Sign and submit the Stratford enrollment contract and prepaid klhgiueffhls
 kvhfgxtfyuh form (if required).','It is very typical for preschool and pre-kindergarten students to experience separation anxietyduring the first few days of school. Please visit thuytrewfghjkjv cbvnmbvcrte78uhjgnmnbvc5678jnm 4587uijk vacquainted with the new environment.Ajfhgdsufdsjfldsbfcjhgdshhhhhhhhuyhgbn sfsfsdur child about his/her new school experience.Focus on the excitement and fun of school, not the apprehension.It is important to discuss the school procedures with your child. Inform your child that you willnot be stayisdfdsgfuyehfihdfiyiewuyfiuwhfng in the classroom with him','1231.16',121451,4001,2815,'0110','2007-02-12 03:55:15+1317','2011-12-10 11:54:12','((2,2),(1,3),(1,1))','((1,3)(6,5))','07:00:2b:02:01:04','3-2','Some students may need time to adjust to school.jhge7fefvjkehguejfgdkhjkjhgowu09f8r9wugfbwjhvuyTears will usually disappear after Mommy and  Daddy leave the classroom. bdys8snssbss97j with your child','((1,2)(6,7))','(9,1)',12.233,'((2,1),6)',12,1114,'(3,1
 ,2,0)','2011-03-11',22564,'$6,050.00','192.168.2','126.4.4.4','12:31:25','Parents and other family members are always welcome at Stratford. After the first two weeks ofschool, jge7rty3498rtkew mfuhqy970qf wjhg8er7ewrjmwe jhg When visiting, please berespectful of the classroom environment and do not disturb the students or teachers. Prior toeach visit, we require all visits to sign in at the school objjcshgifisdcnskjcbdiso be worn while visiting.As a safety precaution, the Stratford playgrounds are closed for outside visitation during normal school hours. We thank you for your cooperation.','0','1',13,24); 
+INSERT 0 78
+--
+-- ********Validation******* 
+--
+\d+ ao_wt_partsnappy8192_1_1_prt_1
+                            Append-Only Table "testaosnappy_partition8192.ao_wt_partsnappy8192_1_1_prt_1"
+ Column |            Type             |                              Modifiers                              | Storage  | Description 
+--------+-----------------------------+---------------------------------------------------------------------+----------+-------------
+ id     | integer                     | not null default nextval('ao_wt_partsnappy8192_1_id_seq'::regclass) | plain    | 
+ a1     | integer                     |                                                                     | plain    | 
+ a2     | character(5)                |                                                                     | extended | 
+ a3     | numeric                     |                                                                     | main     | 
+ a4     | boolean                     | default false                                                       | plain    | 
+ a5     | character(1)                | default 'd'::bpchar                                                 | extended | 
+ a6     | text                        |                                                                     | extended | 
+ a7     | timestamp without time zone |                                                                     | plain    | 
+ a8     | character varying(705)      |                                                                     | extended | 
+ a9     | bigint                      |                                                                     | plain    | 
+ a10    | date                        |                                                                     | plain    | 
+ a11    | character varying(600)      |                                                                     | extended | 
+ a12    | text                        |                                                                     | extended | 
+ a13    | numeric                     |                                                                     | main     | 
+ a14    | real                        |                                                                     | plain    | 
+ a15    | bigint                      |                                                                     | plain    | 
+ a16    | integer                     |                                                                     | plain    | 
+ a17    | bytea                       |                                                                     | extended | 
+ a18    | timestamp with time zone    |                                                                     | plain    | 
+ a19    | time with time zone         |                                                                     | plain    | 
+ a20    | path                        |                                                                     | extended | 
+ a21    | box                         |                                                                     | plain    | 
+ a22    | macaddr                     |                                                                     | plain    | 
+ a23    | interval                    |                                                                     | plain    | 
+ a24    | character varying(800)      |                                                                     | extended | 
+ a25    | lseg                        |                                                                     | plain    | 
+ a26    | point                       |                                                                     | plain    | 
+ a27    | double precision            |                                                                     | plain    | 
+ a28    | circle                      |                                                                     | plain    | 
+ a29    | integer                     |                                                                     | plain    | 
+ a30    | numeric(8,0)                |                                                                     | main     | 
+ a31    | polygon                     |                                                                     | extended | 
+ a32    | date                        |                                                                     | plain    | 
+ a33    | real                        |                                                                     | plain    | 
+ a34    | money                       |                                                                     | plain    | 
+ a35    | cidr                        |                                                                     | plain    | 
+ a36    | inet                        |                                                                     | plain    | 
+ a37    | time without time zone      |                                                                     | plain    | 
+ a38    | text                        |                                                                     | extended | 
+ a39    | bit(1)                      |                                                                     | extended | 
+ a40    | bit varying(5)              |                                                                     | extended | 
+ a41    | smallint                    |                                                                     | plain    | 
+ a42    | integer                     |                                                                     | plain    | 
+Compression Type: snappy
+Compression Level: 0
+Block Size: 8192
+Checksum: f
+Check constraints:
+    "ao_wt_partsnappy8192_1_1_prt_1_check" CHECK (a1 >= 1 AND a1 < 1001)
+Inherits: ao_wt_partsnappy8192_1
+Has OIDs: no
+Options: appendonly=true, orientation=row, compresstype=snappy, blocksize=8192
+Distributed randomly
+
+--
+-- Compression ratio
+--
+ select 'compression_ratio', get_ao_compression_ratio('ao_wt_partsnappy8192_1_1_prt_1'); 
+     ?column?      | get_ao_compression_ratio 
+-------------------+--------------------------
+ compression_ratio |                     4.67
+(1 row)
+
+--
+-- Compare data with uncompressed table
+--
+--
+-- Select number of rows from the uncompressed table 
+--
+SELECT count(*) as count_uncompressed from  ao_wt_partsnappy8192_1_uncompr ;
+ count_uncompressed 
+--------------------
+               4577
+(1 row)
+
+--
+-- Select number of rows from the compressed table 
+--
+SELECT count(*) as count_compressed from  ao_wt_partsnappy8192_1;
+ count_compressed 
+------------------
+             4577
+(1 row)
+
+--
+-- Select number of rows using a FULL outer join on all the columns of the two tables 
+-- Count should match with above result if the all the rows uncompressed correctly: 
+--
+Select count(*) as count_join from ao_wt_partsnappy8192_1 t1 full outer join ao_wt_partsnappy8192_1_uncompr t2 on t1.id=t2.id and t1.a1=t2.a1 and t1.a2=t2.a2 and t1.a3=t2.a3 and t1.a4=t2.a4 and t1.a5=t2.a5 and t1.a6=t2.a6 and t1.a7=t2.a7 and t1.a8=t2.a8 and t1.a9=t2.a9 and t1.a10=t2.a10 and t1.a11=t2.a11 and t1.a12=t2.a12 and t1.a13=t2.a13 and t1.a14=t2.a14 and t1.a15=t2.a15 and t1.a16=t2.a16 and t1.a17=t2.a17 and t1.a18=t2.a18 and t1.a19=t2.a19 and t1.a22=t2.a22 and t1.a23=t2.a23 and t1.a24=t2.a24 and t1.a27=t2.a27 and t1.a29=t2.a29 and t1.a30=t2.a30 and t1.a32=t2.a32 and t1.a33=t2.a33 and t1.a34=t2.a34 and t1.a35=t2.a35 and t1.a36=t2.a36 and t1.a37=t2.a37 and t1.a38=t2.a38 and t1.a39=t2.a39 and t1.a40=t2.a40 and t1.a41=t2.a41 and t1.a42=t2.a42 ;
+ count_join 
+------------
+       4577
+(1 row)
+
+--
+-- Truncate the table 
+--
+TRUNCATE table ao_wt_partsnappy8192_1;
+TRUNCATE TABLE
+--
+-- Insert data again 
+--
+insert into ao_wt_partsnappy8192_1 select * from ao_wt_partsnappy8192_1_uncompr order by a1;
+INSERT 0 4577
+--
+-- Compression ratio
+--
+--
+-- Select the data: Using the JOIN as mentioned above 
+--
+Select count(*) as count_join from ao_wt_partsnappy8192_1 t1 full outer join ao_wt_partsnappy8192_1_uncompr t2 on t1.id=t2.id and t1.a1=t2.a1 and t1.a2=t2.a2 and t1.a3=t2.a3 and t1.a4=t2.a4 and t1.a5=t2.a5 and t1.a6=t2.a6 and t1.a7=t2.a7 and t1.a8=t2.a8 and t1.a9=t2.a9 and t1.a10=t2.a10 and t1.a11=t2.a11 and t1.a12=t2.a12 and t1.a13=t2.a13 and t1.a14=t2.a14 and t1.a15=t2.a15 and t1.a16=t2.a16 and t1.a17=t2.a17 and t1.a18=t2.a18 and t1.a19=t2.a19 and t1.a22=t2.a22 and t1.a23=t2.a23 and t1.a24=t2.a24 and t1.a27=t2.a27 and t1.a29=t2.a29 and t1.a30=t2.a30 and t1.a32=t2.a32 and t1.a33=t2.a33 and t1.a34=t2.a34 and t1.a35=t2.a35 and t1.a36=t2.a36 and t1.a37=t2.a37 and t1.a38=t2.a38 and t1.a39=t2.a39 and t1.a40=t2.a40 and t1.a41=t2.a41 and t1.a42=t2.a42 ;
+ count_join 
+------------
+       4577
+(1 row)
+
+--Alter table Add Partition 
+alter table ao_wt_partsnappy8192_1 add partition new_p start(5050) end (5061) WITH (appendonly=true, orientation=parquet,compresstype=gzip, compresslevel=1);
+psql:/tmp/TestAOSnappy_Partition8192.sql:112: NOTICE:  CREATE TABLE will create partition "ao_wt_partsnappy8192_1_1_prt_new_p" for table "ao_wt_partsnappy8192_1"
+ALTER TABLE
+alter table ao_wt_partsnappy8192_1 add default partition df_p;
+psql:/tmp/TestAOSnappy_Partition8192.sql:114: NOTICE:  CREATE TABLE will create partition "ao_wt_partsnappy8192_1_1_prt_df_p" for table "ao_wt_partsnappy8192_1"
+ALTER TABLE
+-- Insert data 
+Insert into ao_wt_partsnappy8192_1(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) values(generate_series(1,5000),'C',2011,'t','a','dfjjjjjj','2001-12-24 02:26:11','hghgh',333,'2011-10-11','Tddd','sss','1234.56',323453,4454,7845,'0011','2005-07-16 01:51:15+1359','2001-12-13 01:51:15','((1,2),(0,3),(2,1))','((2,3)(4,5))','08:00:2b:01:02:03','1-2','dfdf','((2,3)(4,5))','(6,7)',11.222,'((4,5),7)',32,3214,'(1,0,2,3)','2010-02-21',43564,'$1,000.00','192.168.1','126.1.3.4','12:30:45','ggg','1','0',12,23) ; 
+INSERT 0 5000
+Insert into ao_wt_partsnappy8192_1(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) values(generate_series(5061,6050),'F',2011,'t','a','dfjjjjjj','2001-12-24 02:26:11','hghgh',333,'2011-10-11','Tddd','sss','1234.56',323453,4454,7845,'0011','2005-07-16 01:51:15+1359','2001-12-13 01:51:15','((1,2),(0,3),(2,1))','((2,3)(4,5))','08:00:2b:01:02:03','1-2','dfdf','((2,3)(4,5))','(6,7)',11.222,'((4,5),7)',32,3214,'(1,0,2,3)','2010-02-21',43564,'$1,000.00','192.168.1','126.1.3.4','12:30:45','ggg','1','0',12,23) ; 
+INSERT 0 990
+Insert into ao_wt_partsnappy8192_1(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) values(generate_series(5051,6050),'M',2011,'t','a','dfjjjjjj','2001-12-24 02:26:11','hghgh',333,'2011-10-11','Tddd','sss','1234.56',323453,4454,7845,'0011','2005-07-16 01:51:15+1359','2001-12-13 01:51:15','((1,2),(0,3),(2,1))','((2,3)(4,5))','08:00:2b:01:02:03','1-2','dfdf','((2,3)(4,5))','(6,7)',11.222,'((4,5),7)',32,3214,'(1,0,2,3)','2010-02-21',43564,'$1,000.00','192.168.1','126.1.3.4','12:30:45','ggg','1','0',12,23) ; 
+INSERT 0 1000
+--
+-- Compression ratio
+--
+ select 'compression_ratio', get_ao_compression_ratio('ao_wt_partsnappy8192_1_1_prt_new_p'); 
+     ?column?      | get_ao_compression_ratio 
+-------------------+--------------------------
+ compression_ratio |                     1.38
+(1 row)
+
+--Alter table Exchange Partition 
+--Create a table to use in exchange partition 
+Drop Table if exists ao_wt_partsnappy8192_1_exch; 
+psql:/tmp/TestAOSnappy_Partition8192.sql:130: NOTICE:  table "ao_wt_partsnappy8192_1_exch" does not exist, skipping
+DROP TABLE
+ CREATE TABLE ao_wt_partsnappy8192_1_exch(id SERIAL,a1 int,a2 char(5),a3 numeric,a4 boolean DEFAULT false ,a5 char DEFAULT 'd',a6 text,a7 timestamp,a8 character varying(705),a9 bigint,a10 date,a11 varchar(600),a12 text,a13 decimal,a14 real,a15 bigint,a16 int4 ,a17 bytea,a18 timestamp with time zone,a19 timetz,a20 path,a21 box,a22 macaddr,a23 interval,a24 character varying(800),a25 lseg,a26 point,a27 double precision,a28 circle,a29 int4,a30 numeric(8),a31 polygon,a32 date,a33 real,a34 money,a35 cidr,a36 inet,a37 time,a38 text,a39 bit,a40 bit varying(5),a41 smallint,a42 int) WITH (appendonly=true, orientation=row, compresstype=snappy)  distributed randomly;
+psql:/tmp/TestAOSnappy_Partition8192.sql:131: NOTICE:  CREATE TABLE will create implicit sequence "ao_wt_partsnappy8192_1_exch_id_seq" for serial column "ao_wt_partsnappy8192_1_exch.id"
+CREATE TABLE
+ 
+Drop Table if exists ao_wt_partsnappy8192_1_defexch; 
+psql:/tmp/TestAOSnappy_Partition8192.sql:133: NOTICE:  table "ao_wt_partsnappy8192_1_defexch" does not exist, skipping
+DROP TABLE
+ CREATE TABLE ao_wt_partsnappy8192_1_defexch(id SERIAL,a1 int,a2 char(5),a3 numeric,a4 boolean DEFAULT false ,a5 char DEFAULT 'd',a6 text,a7 timestamp,a8 character varying(705),a9 bigint,a10 date,a11 varchar(600),a12 text,a13 decimal,a14 real,a15 bigint,a16 int4 ,a17 bytea,a18 timestamp with time zone,a19 timetz,a20 path,a21 box,a22 macaddr,a23 interval,a24 character varying(800),a25 lseg,a26 point,a27 double precision,a28 circle,a29 int4,a30 numeric(8),a31 polygon,a32 date,a33 real,a34 money,a35 cidr,a36 inet,a37 time,a38 text,a39 bit,a40 bit varying(5),a41 smallint,a42 int) WITH (appendonly=true, orientation=row, compresstype=snappy)  distributed randomly;
+psql:/tmp/TestAOSnappy_Partition8192.sql:134: NOTICE:  CREATE TABLE will create implicit sequence "ao_wt_partsnappy8192_1_defexch_id_seq" for serial column "ao_wt_partsnappy8192_1_defexch.id"
+CREATE TABLE
+ 
+Insert into ao_wt_partsnappy8192_1_exch(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) select a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42 from ao_wt_partsnappy8192_1 where  a1=10 and a2!='C';
+INSERT 0 44
+Insert into ao_wt_partsnappy8192_1_defexch(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) select a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42 from ao_wt_partsnappy8192_1 where a1 =10 and a2!='C';
+INSERT 0 44
+Alter table ao_wt_partsnappy8192_1 exchange partition FOR (RANK(1)) with table ao_wt_partsnappy8192_1_exch;
+ALTER TABLE
+\d+ ao_wt_partsnappy8192_1_1_prt_1
+                              Append-Only Table "testaosnappy_partition8192.ao_wt_partsnappy8192_1_1_prt_1"
+ Column |            Type             |                                Modifiers                                 | Storage  | Description 
+--------+-----------------------------+--------------------------------------------------------------------------+----------+-------------
+ id     | integer                     | not null default nextval('ao_wt_partsnappy8192_1_exch_id_seq'::regclass) | plain    | 
+ a1     | integer                     |                                                                          | plain    | 
+ a2     | character(5)                |                                                                          | extended | 
+ a3     | numeric                     |                                                                          | main     | 
+ a4     | boolean                     | default false                                                            | plain    | 
+ a5     | character(1)                | default 'd'::bpchar                                                      | extended | 
+ a6     | text                        |                                                                          | extended | 
+ a7     | timestamp without time zone |                                                                          | plain    | 
+ a8     | character varying(705)      |                                                                          | extended | 
+ a9     | bigint                      |                                                                          | plain    | 
+ a10    | date                        |                                                                          | plain    | 
+ a11    | character varying(600)      |                                                                          | extended | 
+ a12    | text                        |                                                                          | extended | 
+ a13    | numeric                     |                                                                          | main     | 
+ a14    | real                        |                                                                          | plain    | 
+ a15    | bigint                      |                                                                          | plain    | 
+ a16    | integer                     |                                                                          | plain    | 
+ a17    | bytea                       |                                                                          | extended | 
+ a18    | timestamp with time zone    |                                                                          | plain    | 
+ a19    | time with time zone         |                                                                          | plain    | 
+ a20    | path                        |                                                                          | extended | 
+ a21    | box                         |                                                                          | plain    | 
+ a22    | macaddr                     |                                                                          | plain    | 
+ a23    | interval                    |                                                                          | plain    | 
+ a24    | character varying(800)      |                                                                          | extended | 
+ a25    | lseg                        |                                                                          | plain    | 
+ a26    | point                       |                                                                          | plain    | 
+ a27    | double precision            |                                                                          | plain    | 
+ a28    | circle                      |                                                                          | plain    | 
+ a29    | integer                     |                                                                          | plain    | 
+ a30    | numeric(8,0)                |                                                                          | main     | 
+ a31    | polygon                     |                                                                          | extended | 
+ a32    | date                        |                                                                          | plain    | 
+ a33    | real                        |                                                                          | plain    | 
+ a34    | money                       |                                                                          | plain    | 
+ a35    | cidr                        |                                                                          | plain    | 
+ a36    | inet                        |                                                                          | plain    | 
+ a37    | time without time zone      |                                                                          | plain    | 
+ a38    | text                        |                                                                          | extended | 
+ a39    | bit(1)                      |                                                                          | extended | 
+ a40    | bit varying(5)              |                                                                          | extended | 
+ a41    | smallint                    |                                                                          | plain    | 
+ a42    | integer                     |                                                                          | plain    | 
+Compression Type: snappy
+Compression Level: 0
+Block Size: 32768
+Checksum: f
+Check constraints:
+    "ao_wt_partsnappy8192_1_1_prt_1_check" CHECK (a1 >= 1 AND a1 < 1001)
+Inherits: ao_wt_partsnappy8192_1
+Has OIDs: no
+Options: appendonly=true, orientation=row, compresstype=snappy
+Distributed randomly
+
+--
+-- Compression ratio
+--
+ select 'compression_ratio', get_ao_compression_ratio('ao_wt_partsnappy8192_1_1_prt_1'); 
+     ?column?      | get_ao_compression_ratio 
+-------------------+--------------------------
+ compression_ratio |                     8.69
+(1 row)
+
+Alter table ao_wt_partsnappy8192_1 exchange default partition with table ao_wt_partsnappy8192_1_defexch;
+psql:/tmp/TestAOSnappy_Partition8192.sql:148: NOTICE:  exchanged partition "df_p" of relation "ao_wt_partsnappy8192_1" with relation "ao_wt_partsnappy8192_1_defexch"
+ALTER TABLE
+\d+ ao_wt_partsnappy8192_1_1_prt_df_p
+                              Append-Only Table "testaosnappy_partition8192.ao_wt_partsnappy8192_1_1_prt_df_p"
+ Column |            Type             |                                  Modifiers                                  | Storage  | Description 
+--------+-----------------------------+-----------------------------------------------------------------------------+----------+-------------
+ id     | integer                     | not null default nextval('ao_wt_partsnappy8192_1_defexch_id_seq'::regclass) | plain    | 
+ a1     | integer                     |                                                                             | plain    | 
+ a2     | character(5)                |                                                                             | extended | 
+ a3     | numeric                     |                                                                             | main     | 
+ a4     | boolean                     | default false                                                               | plain    | 
+ a5     | character(1)                | default 'd'::bpchar                                                         | extended | 
+ a6     | text                        |                                                                             | extended | 
+ a7     | timestamp without time zone |                                                                             | plain    | 
+ a8     | character varying(705)      |                                                                             | extended | 
+ a9     | bigint                      |                                                                             | plain    | 
+ a10    | date                        |                                                                             | plain    | 
+ a11    | character varying(600)      |                                                                             | extended | 
+ a12    | text                        |                                                                             | extended | 
+ a13    | numeric                     |                                                                             | main     | 
+ a14    | real                        |                                                                             | plain    | 
+ a15    | bigint                      |                                                                             | plain    | 
+ a16    | integer                     |                                                                             | plain    | 
+ a17    | bytea                       |                                                                             | extended | 
+ a18    | timestamp with time zone    |                                                                             | plain    | 
+ a19    | time with time zone         |                                                                             | plain    | 
+ a20    | path                        |                                                                             | extended | 
+ a21    | box                         |                                                                             | plain    | 
+ a22    | macaddr                     |                                                                             | plain    | 
+ a23    | interval                    |                                                                             | plain    | 
+ a24    | character varying(800)      |                                                                             | extended | 
+ a25    | lseg                        |                                                                             | plain    | 
+ a26    | point                       |                                                                             | plain    | 
+ a27    | double precision            |                                                                             | plain    | 
+ a28    | circle                      |                                                                             | plain    | 
+ a29    | integer                     |                                                                             | plain    | 
+ a30    | numeric(8,0)                |                                                                             | main     | 
+ a31    | polygon                     |                                                                             | extended | 
+ a32    | date                        |                                                                             | plain    | 
+ a33    | real                        |                                                                             | plain    | 
+ a34    | money                       |                                                                             | plain    | 
+ a35    | cidr                        |                                                                             | plain    | 
+ a36    | inet                        |                                                                             | plain    | 
+ a37    | time without time zone      |                                                                             | plain    | 
+ a38    | text                        |                                                                             | extended | 
+ a39    | bit(1)                      |                                                                             | extended | 
+ a40    | bit varying(5)              |                                                                             | extended | 
+ a41    | smallint                    |                                                                             | plain    | 
+ a42    | integer                     |                                                                             | plain    | 
+Compression Type: snappy
+Compression Level: 0
+Block Size: 32768
+Checksum: f
+Inherits: ao_wt_partsnappy8192_1
+Has OIDs: no
+Options: appendonly=true, orientation=row, compresstype=snappy
+Distributed randomly
+
+--Alter table Exchange Partition 
+ Alter table ao_wt_partsnappy8192_1 split partition FOR (RANK(2)) at(1050) into (partition splitc,partition splitd) ;
+psql:/tmp/TestAOSnappy_Partition8192.sql:152: NOTICE:  CREATE TABLE will create partition "ao_wt_partsnappy8192_1_1_prt_splitc" for table "ao_wt_partsnappy8192_1"
+psql:/tmp/TestAOSnappy_Partition8192.sql:152: NOTICE:  CREATE TABLE will create partition "ao_wt_partsnappy8192_1_1_prt_splitd" for table "ao_wt_partsnappy8192_1"
+ALTER TABLE
+\d+ ao_wt_partsnappy8192_1_1_prt_splitd 
+                         Append-Only Table "testaosnappy_partition8192.ao_wt_partsnappy8192_1_1_prt_splitd"
+ Column |            Type             |                              Modifiers                              | Storage  | Description 
+--------+-----------------------------+---------------------------------------------------------------------+----------+-------------
+ id     | integer                     | not null default nextval('ao_wt_partsnappy8192_1_id_seq'::regclass) | plain    | 
+ a1     | integer                     |                                                                     | plain    | 
+ a2     | character(5)                |                                                                     | extended | 
+ a3     | numeric                     |                                                                     | main     | 
+ a4     | boolean                     | default false                                                       | plain    | 
+ a5     | character(1)                | default 'd'::bpchar                                                 | extended | 
+ a6     | text                        |                                                                     | extended | 
+ a7     | timestamp without time zone |                                                                     | plain    | 
+ a8     | character varying(705)      |                                                                     | extended | 
+ a9     | bigint                      |                                                                     | plain    | 
+ a10    | date                        |                                                                     | plain    | 
+ a11    | character varying(600)      |                                                                     | extended | 
+ a12    | text                        |                                                                     | extended | 
+ a13    | numeric                     |                                                                     | main     | 
+ a14    | real                        |                                                                     | plain    | 
+ a15    | bigint                      |                                                                     | plain    | 
+ a16    | integer                     |                                                                     | plain    | 
+ a17    | bytea                       |                                                                     | extended | 
+ a18    | timestamp with time zone    |                                                                     | plain    | 
+ a19    | time with time zone         |                                                                     | plain    | 
+ a20    | path                        |                                                                     | extended | 
+ a21    | box                         |                                                                     | plain    | 
+ a22    | macaddr                     |                                                                     | plain    | 
+ a23    | interval                    |                                                                     | plain    | 
+ a24    | character varying(800)      |                                                                     | extended | 
+ a25    | lseg                        |                                                                     | plain    | 
+ a26    | point                       |                                                                     | plain    | 
+ a27    | double precision            |                                                                     | plain    | 
+ a28    | circle                      |                                                                     | plain    | 
+ a29    | integer                     |                                                                     | plain    | 
+ a30    | numeric(8,0)                |                                                                     | main     | 
+ a31    | polygon                     |                                                                     | extended | 
+ a32    | date                        |                                                                     | plain    | 
+ a33    | real                        |                                                                     | plain    | 
+ a34    | money                       |                                                                     | plain    | 
+ a35    | cidr                        |                                                                     | plain    | 
+ a36    | inet                        |                                                                     | plain    | 
+ a37    | time without time zone      |                                                                     | plain    | 
+ a38    | text                        |                                                                     | extended | 
+ a39    | bit(1)                      |                                                                     | extended | 
+ a40    | bit varying(5)              |                                                                     | extended | 
+ a41    | smallint                    |                                                                     | plain    | 
+ a42    | integer                     |                                                                     | plain    | 
+Compression Type: snappy
+Compression Level: 0
+Block Size: 8192
+Checksum: f
+Check constraints:
+    "ao_wt_partsnappy8192_1_1_prt_splitd_check" CHECK (a1 >= 1050 AND a1 < 2001)
+Inherits: ao_wt_partsnappy8192_1
+Has OIDs: no
+Options: appendonly=true, orientation=row, compresstype=snappy, blocksize=8192
+Distributed randomly
+
+--
+-- Compression ratio
+--
+ select 'compression_ratio', get_ao_compression_ratio('ao_wt_partsnappy8192_1_1_prt_splitd'); 
+     ?column?      | get_ao_compression_ratio 
+-------------------+--------------------------
+ compression_ratio |                     7.94
+(1 row)
+
+Select count(*) from ao_wt_partsnappy8192_1; 
+ count 
+-------
+  5215
+(1 row)
+
+--Alter table Drop Partition 
+alter table ao_wt_partsnappy8192_1 drop partition new_p;
+ALTER TABLE
+-- Drop the default partition 
+alter table ao_wt_partsnappy8192_1 drop default partition;
+psql:/tmp/TestAOSnappy_Partition8192.sql:166: NOTICE:  dropped partition "df_p" for relation "ao_wt_partsnappy8192_1"
+ALTER TABLE
+--Alter table alter type of a column 
+Alter table ao_wt_partsnappy8192_1 Alter column a3 TYPE int4; 
+ALTER TABLE
+--Insert data to the table, select count(*)
+Insert into ao_wt_partsnappy8192_1(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) select a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42 from ao_wt_partsnappy8192_1 where id =10;
+INSERT 0 1
+Select count(*) from ao_wt_partsnappy8192_1; 
+ count 
+-------
+  5162
+(1 row)
+
+--Alter table drop a column 
+Alter table ao_wt_partsnappy8192_1 Drop column a12; 
+ALTER TABLE
+Insert into ao_wt_partsnappy8192_1(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) select a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42 from ao_wt_partsnappy8192_1 where id =10;
+INSERT 0 1
+Select count(*) from ao_wt_partsnappy8192_1; 
+ count 
+-------
+  5163
+(1 row)
+
+--Alter table rename a column 
+Alter table ao_wt_partsnappy8192_1 Rename column a13 TO after_rename_a13; 
+ALTER TABLE
+--Insert data to the table, select count(*)
+Insert into ao_wt_partsnappy8192_1(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,after_rename_a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) select a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,after_rename_a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42 from ao_wt_partsnappy8192_1 where id =10;
+INSERT 0 1
+Select count(*) from ao_wt_partsnappy8192_1; 
+ count 
+-------
+  5164
+(1 row)
+
+--Alter table add a column 
+Alter table ao_wt_partsnappy8192_1 Add column a12 text default 'new column'; 
+ALTER TABLE
+--Insert data to the table, select count(*)
+Insert into ao_wt_partsnappy8192_1(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,after_rename_a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) select a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,after_rename_a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42 from ao_wt_partsnappy8192_1 where id =10;
+INSERT 0 1
+Select count(*) from ao_wt_partsnappy8192_1; 
+ count 
+-------
+  5165
+(1 row)
+
+--
+-- Drop table if exists
+--
+DROP TABLE if exists ao_wt_partsnappy8192_1_2 cascade;
+psql:/tmp/TestAOSnappy_Partition8192.sql:194: NOTICE:  table "ao_wt_partsnappy8192_1_2" does not exist, skipping
+DROP TABLE
+DROP TABLE if exists ao_wt_partsnappy8192_1_2_uncompr cascade;
+psql:/tmp/TestAOSnappy_Partition8192.sql:196: NOTICE:  table "ao_wt_partsnappy8192_1_2_uncompr" does not exist, skipping
+DROP TABLE
+--
+-- Create table
+--
+CREATE TABLE ao_wt_partsnappy8192_1_2 
+	(id SERIAL,a1 int,a2 char(5),a3 numeric,a4 boolean DEFAULT false ,a5 char DEFAULT 'd',a6 text,a7 timestamp,a8 character varying(705),a9 bigint,a10 date,a11 varchar(600),a12 text,a13 decimal,a14 real,a15 bigint,a16 int4 ,a17 bytea,a18 timestamp with time zone,a19 timetz,a20 path,a21 box,a22 macaddr,a23 interval,a24 character varying(800),a25 lseg,a26 point,a27 double precision,a28 circle,a29 int4,a30 numeric(8),a31 polygon,a32 date,a33 real,a34 money,a35 cidr,a36 inet,a37 time,a38 text,a39 bit,a40 bit varying(5),a41 smallint,a42 int )
+ WITH (appendonly=true, orientation=row) distributed randomly Partition by list(a2) (partition p1 values ('M'), partition p2 values ('F')  
+ WITH (appendonly=true, orientation=row,compresstype=snappy,blocksize=8192));
+psql:/tmp/TestAOSnappy_Partition8192.sql:204: NOTICE:  CREATE TABLE will create implicit sequence "ao_wt_partsnappy8192_1_2_id_seq" for serial column "ao_wt_partsnappy8192_1_2.id"
+psql:/tmp/TestAOSnappy_Partition8192.sql:204: NOTICE:  CREATE TABLE will create partition "ao_wt_partsnappy8192_1_2_1_prt_p1" for table "ao_wt_partsnappy8192_1_2"
+psql:/tmp/TestAOSnappy_Partition8192.sql:204: NOTICE:  CREATE TABLE will create partition "ao_wt_partsnappy8192_1_2_1_prt_p2" for table "ao_wt_partsnappy8192_1_2"
+CREATE TABLE
+--
+-- Insert data to the table
+--
+ INSERT INTO ao_wt_partsnappy8192_1_2(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) values(generate_series(1,20),'M',2011,'t','a','This is news of today: Deadlock between Republicans and Democrats over how best to reduce the U.S. deficit, and over what period, has blocked an agreement to allow the raising of the $14.3 trillion debt ceiling','2001-12-24 02:26:11','U.S. House of Representatives Speaker John Boehner, the top Republican in Congress who has put forward a deficit reduction plan to be voted on later on Thursday said he had no control over whether his bill would avert a credit downgrade.',generate_series(2490,2505),'2011-10-11','The Republican-controlled House is tentatively scheduled to vote on Boehner proposal this afternoon at around 6 p.m. EDT (2200 GMT). The main Republican vote counter in the House, Kevin McCarthy, would not say if there were enough votes 
 to pass the bill.','WASHINGTON:House Speaker John Boehner says his plan mixing spending cuts in exchange for raising the nations $14.3 trillion debt limit is not perfect but is as large a step that a divided government can take that is doable and signable by President Barack Obama.The Ohio Republican says the measure is an honest and sincere attempt at compromise and was negotiated with Democrats last weekend and that passing it would end the ongoing debt crisis. The plan blends $900 billion-plus in spending cuts with a companion increase in the nations borrowing cap.','1234.56',323453,generate_series(3452,3462),7845,'0011','2005-07-16 01:51:15+1359','2001-12-13 01:51:15','((1,2),(0,3),(2,1))','((2,3)(4,5))','08:00:2b:01:02:03','1-2','Republicans had been working throughout the day Thursday to lock down support for their plan to raise the nations debt ceiling, even as Senate Democrats vowed to swiftly kill it if passed.','((2,3)(4,5))','(6,7)',11.222,'((4,5),7)',32,3214,'(1,0,2,3)',
 '2010-02-21',43564,'$1,000.00','192.168.1','126.1.3.4','12:30:45','Johnson & Johnsons McNeil Consumer Healthcare announced the voluntary dosage reduction today. Labels will carry new dosing instructions this fall.The company says it will cut the maximum dosage of Regular Strength Tylenol and other acetaminophen-containing products in 2012.Acetaminophen is safe when used as directed, says Edwin Kuffner, MD, McNeil vice president of over-the-counter medical affairs. But, when too much is taken, it can cause liver damage.The action is intended to cut the risk of such accidental overdoses, the company says in a news release.','1','0',12,23); 
+INSERT 0 880
+ INSERT INTO ao_wt_partsnappy8192_1_2(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) values(generate_series(500,510),'F',2010,'f','b','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child','2001-12-25 02:22:11','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child',generate_series(2500,2516),'2011-10-12','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears w
 ill usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child The type integer is the usual choice, as it offers the best balance between range, storage size, and performance The type integer is the usual choice, as it offers the best balance between range, storage size, and performanceThe type integer is the usual choice, as it offers the best balance between range, storage size, and performanceThe type integer is the usual choice, as it offers the best balance between range, storage size, and performanceThe type integer ','1134.26',311353,generate_series(3982,3992),7885,'0101','2002-02-12 01:31:14+1344','2003-11-14 01:41:15','((1,1),(0,1),(1,1))','((2,1)(1,5))','08:00:2b:01:01:03','1-3','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child The types smallint, integer, and bigint store whole numbers, that is, n
 umbers without fractional components, of various ranges. The types smallint, integer, and bigint store whole numbers, that is, numbers without fractional components, of various ranges. Attempts to store values outside of the allowed range will result in an errorThe types smallint, integer, and bigint store whole numbers, that is, numbers without fractional components, of various ranges.','((6,5)(4,2))','(3,6)',12.233,'((5,4),2)',12,3114,'(1,1,0,3)','2010-03-21',43164,'$1,500.00','192.167.2','126.1.1.1','10:30:55','Parents and other family members are always welcome at Stratford. After the first two weeks ofschool','0','1',33,44); 
+INSERT 0 187
+ INSERT INTO ao_wt_partsnappy8192_1_2(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) values(generate_series(500,525),'M',2010,'f','b','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child','2001-12-25 02:22:11','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child',generate_series(2500,2515),'2011-10-12','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears w
 ill usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child The bigint type might not function correctly on all platforms, since it relies on compiler support for eight-byte integers.The bigint type might not function correctly on all platforms, since it relies on compiler support for eight-byte integers.The bigint type might not function correctly on all platforms, since it relies on compiler support for eight-byte integers.The bigint type might not function correctly on all platforms, since it relies on compiler support ','1134.26',311353,generate_series(3892,3902),7885,'0101','2002-02-12 01:31:14+1344','2003-11-14 01:41:15','((1,1),(0,1),(1,1))','((2,1)(1,5))','08:00:2b:01:01:03','1-3','Some students may need time to adjust to school.For most children, the adjustment is quick. Tears will usually disappear after Mommy and  Daddy leave the classroom. Do not plead with your child The type numeric can store numbers with up to 1000 digits of precisio
 n and perform calculations exactly. It is especially recommended for storing monetary amounts and other quantities where exactness is required. However, arithmetic on numeric values is very slow compared to the integer types, or to the floating-point types described in the next section.The type numeric can store numbers with up to 1000 digits of precision and perform calculations exactly.','((6,5)(4,2))','(3,6)',12.233,'((5,4),2)',12,3114,'(1,1,0,3)','2010-03-21',43164,'$1,500.00','192.167.2','126.1.1.1','10:30:55','bit type data must match the length n exactly; it is an error to attempt to store shorter or longer','1','10',43,54); 
+INSERT 0 2288
+ INSERT INTO ao_wt_partsnappy8192_1_2(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39,a40,a41,a42) values(generate_series(600,625),'F',2011,'f','b','If the scale of a value to be stored is greater than the declared scale of the column

<TRUNCATED>


Mime
View raw message