1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
| postgres=# INSERT INTO account SELECT id, 'test'||id::text, md5(id::text) postgres-# FROM generate_series(200, 300) id ORDER BY random(); INSERT 0 101 postgres=# SELECT ctid, * FROM account WHERE nickname ~ 'test' LIMIT 20; ctid | id | nickname | password ---------+-----+----------+---------------------------------- (0,101) | 296 | test296 | d296c101daa88a51f6ca8cfc1ac79b50 (0,102) | 292 | test292 | 1700002963a49da13542e0726b7bb758 (0,103) | 208 | test208 | 091d584fced301b442654dd8c23b3fc9 (0,104) | 210 | test210 | 6f3ef77ac0e3619e98159e9b6febf557 (0,105) | 240 | test240 | 335f5352088d7d9bf74191e006d8e24c (0,106) | 211 | test211 | eb163727917cbba1eea208541a643e74 (0,107) | 265 | test265 | e56954b4f6347e897f954495eab16a88 (1,1) | 269 | test269 | 06138bc5af6023646ede0e1f7c1eac75 (1,2) | 222 | test222 | bcbe3365e6ac95ea2c0343a2395834dd (1,3) | 252 | test252 | 03c6b06952c750899bb03d998e631860 (1,4) | 230 | test230 | 6da9003b743b65f4c0ccd295cc484e57 (1,5) | 282 | test282 | 6a9aeddfc689c1d0e3b9ccc3ab651bc5 (1,6) | 235 | test235 | 577ef1154f3240ad5b9b413aa7346a1e (1,7) | 213 | test213 | 979d472a84804b9f647bc185a877a8b5 (1,8) | 249 | test249 | 077e29b11be80ab57e1a2ecabb7da330 (1,9) | 200 | test200 | 3644a684f98ea8fe223c713b77189a77 (1,10) | 267 | test267 | eda80a3d5b344bc40f3bc04f65b7a357 (1,11) | 247 | test247 | 3cec07e9ba5f5bb252d13f5f431e4bbb (1,12) | 228 | test228 | 74db120f0a8e5646ef5a30154e9f6deb (1,13) | 262 | test262 | 36660e59856b4de58a219bcf4e27eba3 (20 rows)
postgres=# CLUSTER account ; CLUSTER postgres=# SELECT ctid, * FROM account WHERE nickname ~ 'test' LIMIT 20; ctid | id | nickname | password ---------+-----+----------+---------------------------------- (0,101) | 200 | test200 | 3644a684f98ea8fe223c713b77189a77 (0,102) | 201 | test201 | 757b505cfd34c64c85ca5b5690ee5293 (0,103) | 202 | test202 | 854d6fae5ee42911677c739ee1734486 (0,104) | 203 | test203 | e2c0be24560d78c5e599c2a9c9d0bbd2 (0,105) | 204 | test204 | 274ad4786c3abca69fa097b85867d9a4 (0,106) | 205 | test205 | eae27d77ca20db309e056e3d2dcd7d69 (0,107) | 206 | test206 | 7eabe3a1649ffa2b3ff8c02ebfd5659f (1,1) | 207 | test207 | 69adc1e107f7f7d035d7baf04342e1ca (1,2) | 208 | test208 | 091d584fced301b442654dd8c23b3fc9 (1,3) | 209 | test209 | b1d10e7bafa4421218a51b1e1f1b0ba2 (1,4) | 210 | test210 | 6f3ef77ac0e3619e98159e9b6febf557 (1,5) | 211 | test211 | eb163727917cbba1eea208541a643e74 (1,6) | 212 | test212 | 1534b76d325a8f591b52d302e7181331 (1,7) | 213 | test213 | 979d472a84804b9f647bc185a877a8b5 (1,8) | 214 | test214 | ca46c1b9512a7a8315fa3c5a946e8265 (1,9) | 215 | test215 | 3b8a614226a953a8cd9526fca6fe9ba5 (1,10) | 216 | test216 | 45fbc6d3e05ebd93369ce542e8f2322d (1,11) | 217 | test217 | 63dc7ed1010d3c3b8269faf0ba7491d4 (1,12) | 218 | test218 | e96ed478dab8595a7dbda4cbcbee168f (1,13) | 219 | test219 | c0e190d8267e36708f955d7ab048990d (20 rows)
|