Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.43 KB | None | 0 0
  1. nur@Ainurs-MacBook-Pro ~/D/o/greenplum_tools (master)> python3 gp_cw.py -s faa -t d_airports --host=172.16.70.128 --database=gpadmin 01:08:34
  2. ----- airportid -----
  3. -- airportid RLE_TYPE 3 1240 bytes 100.0 %
  4. -- airportid RLE_TYPE 4 1240 bytes 100.0 %
  5. -- airportid RLE_TYPE 2 1264 bytes 101.94 %
  6. -- airportid RLE_TYPE 1 2184 bytes 176.13 %
  7. -- airportid ZLIB 1 2744 bytes 221.29 %
  8. -- airportid ZLIB 5 2744 bytes 221.29 %
  9. -- airportid ZLIB 9 2744 bytes 221.29 %
  10. -- airportid QUICKLZ 1 5688 bytes 458.71 %
  11. ----- longitude -----
  12. -- longitude ZLIB 5 12 kB 100.0 %
  13. -- longitude ZLIB 9 12 kB 100.0 %
  14. -- longitude RLE_TYPE 3 12 kB 100.13 %
  15. -- longitude RLE_TYPE 4 12 kB 100.13 %
  16. -- longitude ZLIB 1 12 kB 100.33 %
  17. -- longitude RLE_TYPE 2 12 kB 100.6 %
  18. -- longitude QUICKLZ 1 13 kB 113.42 %
  19. -- longitude RLE_TYPE 1 13 kB 114.35 %
  20. ----- timezoneoffset -----
  21. -- timezoneoffset RLE_TYPE 4 880 bytes 100.0 %
  22. -- timezoneoffset ZLIB 9 888 bytes 100.91 %
  23. -- timezoneoffset RLE_TYPE 3 928 bytes 105.45 %
  24. -- timezoneoffset ZLIB 5 984 bytes 111.82 %
  25. -- timezoneoffset RLE_TYPE 2 1160 bytes 131.82 %
  26. -- timezoneoffset ZLIB 1 1272 bytes 144.55 %
  27. -- timezoneoffset QUICKLZ 1 2344 bytes 266.36 %
  28. -- timezoneoffset RLE_TYPE 1 7816 bytes 888.18 %
  29. ----- airport_code -----
  30. -- airport_code ZLIB 9 3752 bytes 100.0 %
  31. -- airport_code ZLIB 1 3760 bytes 100.21 %
  32. -- airport_code ZLIB 5 3760 bytes 100.21 %
  33. -- airport_code RLE_TYPE 2 3816 bytes 101.71 %
  34. -- airport_code RLE_TYPE 3 3824 bytes 101.92 %
  35. -- airport_code RLE_TYPE 4 3824 bytes 101.92 %
  36. -- airport_code QUICKLZ 1 6160 bytes 164.18 %
  37. -- airport_code RLE_TYPE 1 6160 bytes 164.18 %
  38. ----- icoa_code -----
  39. -- icoa_code ZLIB 9 3800 bytes 100.0 %
  40. -- icoa_code ZLIB 5 3824 bytes 100.63 %
  41. -- icoa_code RLE_TYPE 4 3848 bytes 101.26 %
  42. -- icoa_code RLE_TYPE 3 3856 bytes 101.47 %
  43. -- icoa_code RLE_TYPE 2 3976 bytes 104.63 %
  44. -- icoa_code ZLIB 1 3984 bytes 104.84 %
  45. -- icoa_code QUICKLZ 1 5832 bytes 153.47 %
  46. -- icoa_code RLE_TYPE 1 7168 bytes 188.63 %
  47. ----- altitude -----
  48. -- altitude ZLIB 9 3880 bytes 100.0 %
  49. -- altitude RLE_TYPE 4 3952 bytes 101.86 %
  50. -- altitude ZLIB 5 4008 bytes 103.3 %
  51. -- altitude RLE_TYPE 3 4080 bytes 105.15 %
  52. -- altitude ZLIB 1 4288 bytes 110.52 %
  53. -- altitude RLE_TYPE 2 4352 bytes 112.16 %
  54. -- altitude QUICKLZ 1 4968 bytes 128.04 %
  55. -- altitude RLE_TYPE 1 13 kB 341.86 %
  56. ----- city -----
  57. -- city ZLIB 5 9304 bytes 100.0 %
  58. -- city ZLIB 9 9312 bytes 100.09 %
  59. -- city RLE_TYPE 3 9352 bytes 100.52 %
  60. -- city RLE_TYPE 4 9368 bytes 100.69 %
  61. -- city ZLIB 1 9608 bytes 103.27 %
  62. -- city RLE_TYPE 2 9664 bytes 103.87 %
  63. -- city QUICKLZ 1 12 kB 135.51 %
  64. -- city RLE_TYPE 1 17 kB 185.73 %
  65. ----- dst_flag -----
  66. -- dst_flag RLE_TYPE 2 192 bytes 100.0 %
  67. -- dst_flag RLE_TYPE 3 192 bytes 100.0 %
  68. -- dst_flag RLE_TYPE 4 192 bytes 100.0 %
  69. -- dst_flag ZLIB 9 200 bytes 104.17 %
  70. -- dst_flag ZLIB 5 224 bytes 116.67 %
  71. -- dst_flag ZLIB 1 256 bytes 133.33 %
  72. -- dst_flag RLE_TYPE 1 376 bytes 195.83 %
  73. -- dst_flag QUICKLZ 1 384 bytes 200.0 %
  74. ----- tz -----
  75. -- tz RLE_TYPE 4 1160 bytes 100.0 %
  76. -- tz ZLIB 9 1240 bytes 106.9 %
  77. -- tz RLE_TYPE 3 1320 bytes 113.79 %
  78. -- tz ZLIB 5 1512 bytes 130.34 %
  79. -- tz RLE_TYPE 2 1608 bytes 138.62 %
  80. -- tz ZLIB 1 1960 bytes 168.97 %
  81. -- tz QUICKLZ 1 2856 bytes 246.21 %
  82. -- tz RLE_TYPE 1 15 kB 1341.38 %
  83. ----- latitude -----
  84. -- latitude ZLIB 5 12 kB 100.0 %
  85. -- latitude ZLIB 9 12 kB 100.0 %
  86. -- latitude RLE_TYPE 3 12 kB 100.2 %
  87. -- latitude RLE_TYPE 4 12 kB 100.2 %
  88. -- latitude ZLIB 1 12 kB 100.47 %
  89. -- latitude RLE_TYPE 2 12 kB 100.67 %
  90. -- latitude QUICKLZ 1 13 kB 113.72 %
  91. -- latitude RLE_TYPE 1 13 kB 114.59 %
  92. ----- country -----
  93. -- country RLE_TYPE 3 72 bytes 100.0 %
  94. -- country RLE_TYPE 4 72 bytes 100.0 %
  95. -- country RLE_TYPE 1 80 bytes 111.11 %
  96. -- country RLE_TYPE 2 80 bytes 111.11 %
  97. -- country ZLIB 5 128 bytes 177.78 %
  98. -- country ZLIB 9 128 bytes 177.78 %
  99. -- country ZLIB 1 216 bytes 300.0 %
  100. -- country QUICKLZ 1 368 bytes 511.11 %
  101. ----- name -----
  102. -- name ZLIB 9 15 kB 100.0 %
  103. -- name RLE_TYPE 4 15 kB 100.57 %
  104. -- name ZLIB 5 15 kB 100.68 %
  105. -- name RLE_TYPE 3 15 kB 100.99 %
  106. -- name RLE_TYPE 2 16 kB 108.52 %
  107. -- name ZLIB 1 16 kB 108.58 %
  108. -- name QUICKLZ 1 20 kB 134.93 %
  109. -- name RLE_TYPE 1 35 kB 229.83 %
  110.  
  111. SET search_path TO faa;
  112.  
  113. CREATE TABLE d_airports_new_type (
  114. LIKE d_airports,
  115. COLUMN airportid ENCODING (compresstype=RLE_TYPE, COMPRESSLEVEL=2),
  116. COLUMN timezoneoffset ENCODING (compresstype=ZLIB, COMPRESSLEVEL=9),
  117. COLUMN dst_flag ENCODING (compresstype=ZLIB, COMPRESSLEVEL=9),
  118. COLUMN tz ENCODING (compresstype=ZLIB, COMPRESSLEVEL=9),
  119. COLUMN name ENCODING (compresstype=ZLIB, COMPRESSLEVEL=1),
  120. COLUMN city ENCODING (compresstype=ZLIB, COMPRESSLEVEL=1),
  121. COLUMN country ENCODING (compresstype=RLE_TYPE, COMPRESSLEVEL=1),
  122. COLUMN airport_code ENCODING (compresstype=ZLIB, COMPRESSLEVEL=1),
  123. COLUMN icoa_code ENCODING (compresstype=ZLIB, COMPRESSLEVEL=1),
  124. COLUMN latitude ENCODING (compresstype=ZLIB, COMPRESSLEVEL=1),
  125. COLUMN longitude ENCODING (compresstype=ZLIB, COMPRESSLEVEL=1),
  126. COLUMN altitude ENCODING (compresstype=ZLIB, COMPRESSLEVEL=1)
  127. )
  128. WITH (
  129. appendonly=true,
  130. orientation=column,
  131. compresstype=RLE_TYPE,
  132. COMPRESSLEVEL=3
  133. );
  134. INSERT INTO d_airports_new_type SELECT * FROM d_airports;
  135. ANALYZE d_airports_new_type;
  136.  
  137.  
  138. --CHECK INDEXES
  139. BEGIN;
  140. ALTER TABLE d_airports RENAME TO d_airports_old;
  141. ALTER TABLE d_airports_new_type RENAME TO d_airports;
  142. COMMIT;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement