~ubuntu-branches/ubuntu/utopic/postgresql-9.1/utopic

« back to all changes in this revision

Viewing changes to src/test/regress/expected/point.out

  • Committer: Package Import Robot
  • Author(s): Martin Pitt, CVE-2013-1899
  • Date: 2013-04-02 10:26:14 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20130402102614-vyijoo0ba7ulfyom
Tags: 9.1.9-1
* Urgency high because of critical remote data destruction vulnerability.
* New upstream security/bug fix release:
  - Fix insecure parsing of server command-line switches.
    A connection request containing a database name that begins with
    "-" could be crafted to damage or destroy files within the server's
    data directory, even if the request is eventually rejected.
    [CVE-2013-1899] (Closes: #704479)
  - Reset OpenSSL randomness state in each postmaster child process.
    This avoids a scenario wherein random numbers generated by
    "contrib/pgcrypto" functions might be relatively easy for another
    database user to guess. The risk is only significant when the
    postmaster is configured with ssl = on but most connections don't
    use SSL encryption. [CVE-2013-1900]
  - Make REPLICATION privilege checks test current user not
    authenticated user.
    An unprivileged database user could exploit this mistake to call
    pg_start_backup() or pg_stop_backup(), thus possibly interfering
    with creation of routine backups. [CVE-2013-1901]
  - Fix GiST indexes to not use "fuzzy" geometric comparisons when it's
    not appropriate to do so.
    The core geometric types perform comparisons using "fuzzy"
    equality, but gist_box_same must do exact comparisons, else GiST
    indexes using it might become inconsistent. After installing this
    update, users should "REINDEX" any GiST indexes on box, polygon,
    circle, or point columns, since all of these use gist_box_same.
  - Fix erroneous range-union and penalty logic in GiST indexes that
    use "contrib/btree_gist" for variable-width data types, that is
    text, bytea, bit, and numeric columns.
    These errors could result in inconsistent indexes in which some
    keys that are present would not be found by searches, and also in
    useless index bloat. Users are advised to "REINDEX" such indexes
    after installing this update.
  - Fix bugs in GiST page splitting code for multi-column indexes.
    These errors could result in inconsistent indexes in which some
    keys that are present would not be found by searches, and also in
    indexes that are unnecessarily inefficient to search. Users are
    advised to "REINDEX" multi-column GiST indexes after installing
    this update.
  - See HISTORY/changelog.gz for details about the other bug fixes.
* Bump Standards-Version to 3.9.4 (no changes necessary).

Show diffs side-by-side

added added

removed removed

Lines of Context:
245
245
       | (5.1,34.5) | (10,10)  | 24.9851956166046
246
246
(3 rows)
247
247
 
 
248
-- Test that GiST indexes provide same behavior as sequential scan
 
249
CREATE TEMP TABLE point_gist_tbl(f1 point);
 
250
INSERT INTO point_gist_tbl SELECT '(0,0)' FROM generate_series(0,1000);
 
251
CREATE INDEX point_gist_tbl_index ON point_gist_tbl USING gist (f1);
 
252
INSERT INTO point_gist_tbl VALUES ('(0.0000009,0.0000009)');
 
253
SET enable_seqscan TO true;
 
254
SET enable_indexscan TO false;
 
255
SET enable_bitmapscan TO false;
 
256
SELECT COUNT(*) FROM point_gist_tbl WHERE f1 ~= '(0.0000009,0.0000009)'::point;
 
257
 count 
 
258
-------
 
259
  1002
 
260
(1 row)
 
261
 
 
262
SELECT COUNT(*) FROM point_gist_tbl WHERE f1 <@ '(0.0000009,0.0000009),(0.0000009,0.0000009)'::box;
 
263
 count 
 
264
-------
 
265
     1
 
266
(1 row)
 
267
 
 
268
SELECT COUNT(*) FROM point_gist_tbl WHERE f1 ~= '(0.0000018,0.0000018)'::point;
 
269
 count 
 
270
-------
 
271
     1
 
272
(1 row)
 
273
 
 
274
SET enable_seqscan TO false;
 
275
SET enable_indexscan TO true;
 
276
SET enable_bitmapscan TO true;
 
277
SELECT COUNT(*) FROM point_gist_tbl WHERE f1 ~= '(0.0000009,0.0000009)'::point;
 
278
 count 
 
279
-------
 
280
  1002
 
281
(1 row)
 
282
 
 
283
SELECT COUNT(*) FROM point_gist_tbl WHERE f1 <@ '(0.0000009,0.0000009),(0.0000009,0.0000009)'::box;
 
284
 count 
 
285
-------
 
286
     1
 
287
(1 row)
 
288
 
 
289
SELECT COUNT(*) FROM point_gist_tbl WHERE f1 ~= '(0.0000018,0.0000018)'::point;
 
290
 count 
 
291
-------
 
292
     1
 
293
(1 row)
 
294
 
 
295
RESET enable_seqscan;
 
296
RESET enable_indexscan;
 
297
RESET enable_bitmapscan;