@@ -19,7 +19,7 @@ select 1
1919select
2020-- no such relation
2121select * from nonesuch;
22- ERROR: parser: parse error at or near "select"
22+ ERROR: parser: parse error at or near "select" at character 10
2323-- bad name in target list
2424select nonesuch from pg_database;
2525ERROR: Attribute "nonesuch" not found
@@ -31,7 +31,7 @@ select * from pg_database where pg_database.datname = nonesuch;
3131ERROR: Attribute "nonesuch" not found
3232-- bad select distinct on syntax, distinct attribute missing
3333select distinct on (foobar) from pg_database;
34- ERROR: parser: parse error at or near "from"
34+ ERROR: parser: parse error at or near "from" at character 29
3535-- bad select distinct on syntax, distinct attribute not in target list
3636select distinct on (foobar) * from pg_database;
3737ERROR: Attribute "foobar" not found
@@ -40,7 +40,7 @@ ERROR: Attribute "foobar" not found
4040
4141-- missing relation name (this had better not wildcard!)
4242delete from;
43- ERROR: parser: parse error at or near ";"
43+ ERROR: parser: parse error at or near ";" at character 12
4444-- no such relation
4545delete from nonesuch;
4646ERROR: Relation "nonesuch" does not exist
@@ -49,7 +49,7 @@ ERROR: Relation "nonesuch" does not exist
4949
5050-- missing relation name (this had better not wildcard!)
5151drop table;
52- ERROR: parser: parse error at or near ";"
52+ ERROR: parser: parse error at or near ";" at character 11
5353-- no such relation
5454drop table nonesuch;
5555ERROR: table "nonesuch" does not exist
@@ -59,7 +59,7 @@ ERROR: table "nonesuch" does not exist
5959-- relation renaming
6060-- missing relation name
6161alter table rename;
62- ERROR: parser: parse error at or near ";"
62+ ERROR: parser: parse error at or near ";" at character 19
6363-- no such relation
6464alter table nonesuch rename to newnonesuch;
6565ERROR: Relation "nonesuch" does not exist
@@ -113,10 +113,10 @@ ERROR: Define: "basetype" unspecified
113113
114114-- missing index name
115115drop index;
116- ERROR: parser: parse error at or near ";"
116+ ERROR: parser: parse error at or near ";" at character 11
117117-- bad index name
118118drop index 314159;
119- ERROR: parser: parse error at or near "314159"
119+ ERROR: parser: parse error at or near "314159" at character 12
120120-- no such index
121121drop index nonesuch;
122122ERROR: index "nonesuch" does not exist
@@ -125,13 +125,13 @@ ERROR: index "nonesuch" does not exist
125125
126126-- missing aggregate name
127127drop aggregate;
128- ERROR: parser: parse error at or near ";"
128+ ERROR: parser: parse error at or near ";" at character 15
129129-- missing aggregate type
130130drop aggregate newcnt1;
131- ERROR: parser: parse error at or near ";"
131+ ERROR: parser: parse error at or near ";" at character 23
132132-- bad aggregate name
133133drop aggregate 314159 (int);
134- ERROR: parser: parse error at or near "314159"
134+ ERROR: parser: parse error at or near "314159" at character 16
135135-- bad aggregate type
136136drop aggregate newcnt (nonesuch);
137137ERROR: Type "nonesuch" does not exist
@@ -146,10 +146,10 @@ ERROR: RemoveAggregate: aggregate newcnt(real) does not exist
146146
147147-- missing function name
148148drop function ();
149- ERROR: parser: parse error at or near "("
149+ ERROR: parser: parse error at or near "(" at character 15
150150-- bad function name
151151drop function 314159();
152- ERROR: parser: parse error at or near "314159"
152+ ERROR: parser: parse error at or near "314159" at character 15
153153-- no such function
154154drop function nonesuch();
155155ERROR: RemoveFunction: function nonesuch() does not exist
@@ -158,10 +158,10 @@ ERROR: RemoveFunction: function nonesuch() does not exist
158158
159159-- missing type name
160160drop type;
161- ERROR: parser: parse error at or near ";"
161+ ERROR: parser: parse error at or near ";" at character 10
162162-- bad type name
163163drop type 314159;
164- ERROR: parser: parse error at or near "314159"
164+ ERROR: parser: parse error at or near "314159" at character 11
165165-- no such type
166166drop type nonesuch;
167167ERROR: Type "nonesuch" does not exist
@@ -170,22 +170,22 @@ ERROR: Type "nonesuch" does not exist
170170
171171-- missing everything
172172drop operator;
173- ERROR: parser: parse error at or near ";"
173+ ERROR: parser: parse error at or near ";" at character 14
174174-- bad operator name
175175drop operator equals;
176- ERROR: parser: parse error at or near ";"
176+ ERROR: parser: parse error at or near ";" at character 21
177177-- missing type list
178178drop operator ===;
179- ERROR: parser: parse error at or near ";"
179+ ERROR: parser: parse error at or near ";" at character 18
180180-- missing parentheses
181181drop operator int4, int4;
182- ERROR: parser: parse error at or near ","
182+ ERROR: parser: parse error at or near "," at character 19
183183-- missing operator name
184184drop operator (int4, int4);
185- ERROR: parser: parse error at or near "("
185+ ERROR: parser: parse error at or near "(" at character 15
186186-- missing type list contents
187187drop operator === ();
188- ERROR: parser: parse error at or near ")"
188+ ERROR: parser: parse error at or near ")" at character 20
189189-- no such operator
190190drop operator === (int4);
191191ERROR: parser: argument type missing (use NONE for unary operators)
@@ -197,7 +197,7 @@ drop operator = (nonesuch);
197197ERROR: parser: argument type missing (use NONE for unary operators)
198198-- no such type1
199199drop operator = ( , int4);
200- ERROR: parser: parse error at or near ","
200+ ERROR: parser: parse error at or near "," at character 19
201201-- no such type1
202202drop operator = (nonesuch, int4);
203203ERROR: Type "nonesuch" does not exist
@@ -206,25 +206,25 @@ drop operator = (int4, nonesuch);
206206ERROR: Type "nonesuch" does not exist
207207-- no such type2
208208drop operator = (int4, );
209- ERROR: parser: parse error at or near ")"
209+ ERROR: parser: parse error at or near ")" at character 24
210210--
211211-- DROP RULE
212212
213213-- missing rule name
214214drop rule;
215- ERROR: parser: parse error at or near ";"
215+ ERROR: parser: parse error at or near ";" at character 10
216216-- bad rule name
217217drop rule 314159;
218- ERROR: parser: parse error at or near "314159"
218+ ERROR: parser: parse error at or near "314159" at character 11
219219-- no such rule
220220drop rule nonesuch on noplace;
221221ERROR: Relation "noplace" does not exist
222222-- bad keyword
223223drop tuple rule nonesuch;
224- ERROR: parser: parse error at or near "tuple"
224+ ERROR: parser: parse error at or near "tuple" at character 6
225225-- no such rule
226226drop instance rule nonesuch on noplace;
227- ERROR: parser: parse error at or near "instance"
227+ ERROR: parser: parse error at or near "instance" at character 6
228228-- no such rule
229229drop rewrite rule nonesuch;
230- ERROR: parser: parse error at or near "rewrite"
230+ ERROR: parser: parse error at or near "rewrite" at character 6