~ubuntu-branches/ubuntu/precise/postgresql-9.1/precise-security

« back to all changes in this revision

Viewing changes to contrib/btree_gin/expected/bytea.out

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-05-11 10:41:53 UTC
  • Revision ID: james.westby@ubuntu.com-20110511104153-psbh2o58553fv1m0
Tags: upstream-9.1~beta1
ImportĀ upstreamĀ versionĀ 9.1~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
set enable_seqscan=off;
 
2
-- ensure consistent test output regardless of the default bytea format
 
3
SET bytea_output TO escape;
 
4
CREATE TABLE test_bytea (
 
5
        i bytea
 
6
);
 
7
INSERT INTO test_bytea VALUES ('aaa'),('a'),('abc'),('abb'),('axy'),('xyz');
 
8
CREATE INDEX idx_bytea ON test_bytea USING gin (i);
 
9
SELECT * FROM test_bytea WHERE i<'abc'::bytea ORDER BY i;
 
10
  i  
 
11
-----
 
12
 a
 
13
 aaa
 
14
 abb
 
15
(3 rows)
 
16
 
 
17
SELECT * FROM test_bytea WHERE i<='abc'::bytea ORDER BY i;
 
18
  i  
 
19
-----
 
20
 a
 
21
 aaa
 
22
 abb
 
23
 abc
 
24
(4 rows)
 
25
 
 
26
SELECT * FROM test_bytea WHERE i='abc'::bytea ORDER BY i;
 
27
  i  
 
28
-----
 
29
 abc
 
30
(1 row)
 
31
 
 
32
SELECT * FROM test_bytea WHERE i>='abc'::bytea ORDER BY i;
 
33
  i  
 
34
-----
 
35
 abc
 
36
 axy
 
37
 xyz
 
38
(3 rows)
 
39
 
 
40
SELECT * FROM test_bytea WHERE i>'abc'::bytea ORDER BY i;
 
41
  i  
 
42
-----
 
43
 axy
 
44
 xyz
 
45
(2 rows)
 
46