Remove useless whitespace at end of lines
This commit is contained in:
parent
44475e782f
commit
fc946c39ae
|
@ -1,6 +1,6 @@
|
|||
%{
|
||||
/*
|
||||
** A scanner for EMP-style numeric ranges
|
||||
* A scanner for EMP-style numeric ranges
|
||||
* contrib/cube/cubescan.l
|
||||
*/
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
%{
|
||||
/*
|
||||
** A scanner for EMP-style numeric ranges
|
||||
* A scanner for EMP-style numeric ranges
|
||||
*/
|
||||
|
||||
#include "postgres.h"
|
||||
|
|
|
@ -2337,7 +2337,6 @@ Upon a woman s face. E. J. Pratt (1882 1964)
|
|||
The granite features of this cliff
|
||||
(1 row)
|
||||
|
||||
|
||||
select headline('Erosion It took the sea a thousand years,
|
||||
A thousand years to trace
|
||||
The granite features of this cliff
|
||||
|
@ -2354,7 +2353,6 @@ Upon a woman s face. E. J. Pratt (1882 1964)
|
|||
The <b>granite</b> features of this cliff
|
||||
(1 row)
|
||||
|
||||
|
||||
select headline('Erosion It took the sea a thousand years,
|
||||
A thousand years to trace
|
||||
The granite features of this cliff
|
||||
|
|
|
@ -2337,7 +2337,6 @@ Upon a woman s face. E. J. Pratt (1882 1964)
|
|||
The granite features of this cliff
|
||||
(1 row)
|
||||
|
||||
|
||||
select headline('Erosion It took the sea a thousand years,
|
||||
A thousand years to trace
|
||||
The granite features of this cliff
|
||||
|
@ -2354,7 +2353,6 @@ Upon a woman s face. E. J. Pratt (1882 1964)
|
|||
The <b>granite</b> features of this cliff
|
||||
(1 row)
|
||||
|
||||
|
||||
select headline('Erosion It took the sea a thousand years,
|
||||
A thousand years to trace
|
||||
The granite features of this cliff
|
||||
|
|
|
@ -2743,7 +2743,6 @@ timestamp PGTYPEStimestamp_from_asc(char *str, char **endptr);
|
|||
The function returns the parsed timestamp on success. On error,
|
||||
<literal>PGTYPESInvalidTimestamp</literal> is returned and <varname>errno</> is
|
||||
set to <literal>PGTYPES_TS_BAD_TIMESTAMP</>. See <xref linkend="PGTYPESInvalidTimestamp"> for important notes on this value.
|
||||
|
||||
</para>
|
||||
<para>
|
||||
In general, the input string can contain any combination of an allowed
|
||||
|
|
|
@ -5,12 +5,10 @@ CREATE OR REPLACE FUNCTION bar() RETURNS integer AS $$
|
|||
# alternative - causes server process to exit(255)
|
||||
spi_exec_query("invalid sql statement");
|
||||
$$ language plperl; -- compile plperl code
|
||||
|
||||
CREATE OR REPLACE FUNCTION foo() RETURNS integer AS $$
|
||||
spi_exec_query("SELECT * FROM bar()");
|
||||
return 1;
|
||||
$$ LANGUAGE plperlu; -- compile plperlu code
|
||||
|
||||
SELECT * FROM bar(); -- throws exception normally (running plperl)
|
||||
ERROR: syntax error at or near "invalid" at line 4.
|
||||
CONTEXT: PL/Perl function "bar"
|
||||
|
|
|
@ -122,7 +122,6 @@ NOTICE: $_TD->{table_schema} = 'public'
|
|||
CONTEXT: PL/Perl function "trigger_data"
|
||||
NOTICE: $_TD->{when} = 'BEFORE'
|
||||
CONTEXT: PL/Perl function "trigger_data"
|
||||
|
||||
DROP TRIGGER show_trigger_data_trig on trigger_test;
|
||||
insert into trigger_test values(1,'insert');
|
||||
CREATE VIEW trigger_test_view AS SELECT * FROM trigger_test;
|
||||
|
@ -202,7 +201,6 @@ NOTICE: $_TD->{when} = 'INSTEAD OF'
|
|||
CONTEXT: PL/Perl function "trigger_data"
|
||||
DROP VIEW trigger_test_view;
|
||||
delete from trigger_test;
|
||||
|
||||
DROP FUNCTION trigger_data();
|
||||
CREATE OR REPLACE FUNCTION valid_id() RETURNS trigger AS $$
|
||||
|
||||
|
|
|
@ -1023,5 +1023,4 @@ SELECT count(*) FROM onek_with_null WHERE unique1 IS NULL AND unique2 IS NOT NUL
|
|||
RESET enable_seqscan;
|
||||
RESET enable_indexscan;
|
||||
RESET enable_bitmapscan;
|
||||
|
||||
DROP TABLE onek_with_null;
|
||||
|
|
|
@ -10,13 +10,11 @@ select 1;
|
|||
|
||||
--
|
||||
-- UNSUPPORTED STUFF
|
||||
|
||||
-- doesn't work
|
||||
-- notify pg_class
|
||||
--
|
||||
--
|
||||
-- SELECT
|
||||
|
||||
-- missing relation name
|
||||
select;
|
||||
ERROR: syntax error at or near ";"
|
||||
|
@ -59,7 +57,6 @@ LINE 1: select distinct on (foobar) * from pg_database;
|
|||
^
|
||||
--
|
||||
-- DELETE
|
||||
|
||||
-- missing relation name (this had better not wildcard!)
|
||||
delete from;
|
||||
ERROR: syntax error at or near ";"
|
||||
|
@ -72,7 +69,6 @@ LINE 1: delete from nonesuch;
|
|||
^
|
||||
--
|
||||
-- DROP
|
||||
|
||||
-- missing relation name (this had better not wildcard!)
|
||||
drop table;
|
||||
ERROR: syntax error at or near ";"
|
||||
|
@ -83,7 +79,6 @@ drop table nonesuch;
|
|||
ERROR: table "nonesuch" does not exist
|
||||
--
|
||||
-- ALTER TABLE
|
||||
|
||||
-- relation renaming
|
||||
-- missing relation name
|
||||
alter table rename;
|
||||
|
@ -117,7 +112,6 @@ alter table emp rename column salary to oid;
|
|||
ERROR: column "oid" of relation "stud_emp" already exists
|
||||
--
|
||||
-- TRANSACTION STUFF
|
||||
|
||||
-- not in a xact
|
||||
abort;
|
||||
NOTICE: there is no transaction in progress
|
||||
|
@ -140,7 +134,6 @@ create aggregate newcnt1 (sfunc = int4inc,
|
|||
ERROR: aggregate input type must be specified
|
||||
--
|
||||
-- DROP INDEX
|
||||
|
||||
-- missing index name
|
||||
drop index;
|
||||
ERROR: syntax error at or near ";"
|
||||
|
@ -156,7 +149,6 @@ drop index nonesuch;
|
|||
ERROR: index "nonesuch" does not exist
|
||||
--
|
||||
-- DROP AGGREGATE
|
||||
|
||||
-- missing aggregate name
|
||||
drop aggregate;
|
||||
ERROR: syntax error at or near ";"
|
||||
|
@ -183,7 +175,6 @@ drop aggregate newcnt (float4);
|
|||
ERROR: aggregate newcnt(real) does not exist
|
||||
--
|
||||
-- DROP FUNCTION
|
||||
|
||||
-- missing function name
|
||||
drop function ();
|
||||
ERROR: syntax error at or near "("
|
||||
|
@ -199,7 +190,6 @@ drop function nonesuch();
|
|||
ERROR: function nonesuch() does not exist
|
||||
--
|
||||
-- DROP TYPE
|
||||
|
||||
-- missing type name
|
||||
drop type;
|
||||
ERROR: syntax error at or near ";"
|
||||
|
@ -215,7 +205,6 @@ drop type nonesuch;
|
|||
ERROR: type "nonesuch" does not exist
|
||||
--
|
||||
-- DROP OPERATOR
|
||||
|
||||
-- missing everything
|
||||
drop operator;
|
||||
ERROR: syntax error at or near ";"
|
||||
|
@ -279,7 +268,6 @@ LINE 1: drop operator = (int4, );
|
|||
^
|
||||
--
|
||||
-- DROP RULE
|
||||
|
||||
-- missing rule name
|
||||
drop rule;
|
||||
ERROR: syntax error at or near ";"
|
||||
|
@ -378,7 +366,7 @@ LINE 3: id3 INTEGER NOT NUL,
|
|||
CREATE TABLE foo(id INT4 UNIQUE NOT NULL, id2 TEXT NOT NULL PRIMARY KEY, id3 INTEGER NOT NUL,
|
||||
id4 INT4 UNIQUE NOT NULL, id5 TEXT UNIQUE NOT NULL);
|
||||
ERROR: syntax error at or near "NUL"
|
||||
LINE 1: ...T NULL, id2 TEXT NOT NULL PRIMARY KEY, id3 INTEGER NOT NUL,
|
||||
LINE 1: ...OT NULL, id2 TEXT NOT NULL PRIMARY KEY, id3 INTEGER NOT NUL,
|
||||
^
|
||||
-- long line to be truncated on the right
|
||||
CREATE TABLE foo(
|
||||
|
@ -406,7 +394,7 @@ NOT
|
|||
NULL)
|
||||
;
|
||||
ERROR: syntax error at or near "NUL"
|
||||
LINE 4: ...T NULL, id2 TEXT NOT NULL PRIMARY KEY, id3 INTEGER NOT NUL,
|
||||
LINE 4: ...OT NULL, id2 TEXT NOT NULL PRIMARY KEY, id3 INTEGER NOT NUL,
|
||||
^
|
||||
-- long line to be truncated on the right, many lines
|
||||
CREATE
|
||||
|
|
|
@ -1394,14 +1394,12 @@ SELECT * FROM ruletest_tbl2;
|
|||
create table rule_and_refint_t1 (
|
||||
id1a integer,
|
||||
id1b integer,
|
||||
|
||||
primary key (id1a, id1b)
|
||||
);
|
||||
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "rule_and_refint_t1_pkey" for table "rule_and_refint_t1"
|
||||
create table rule_and_refint_t2 (
|
||||
id2a integer,
|
||||
id2c integer,
|
||||
|
||||
primary key (id2a, id2c)
|
||||
);
|
||||
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "rule_and_refint_t2_pkey" for table "rule_and_refint_t2"
|
||||
|
|
|
@ -80,7 +80,6 @@ SELECT onek.unique1, onek.stringu1 FROM onek
|
|||
987 | ZLAAAA
|
||||
(19 rows)
|
||||
|
||||
|
||||
--
|
||||
-- awk '{if($1>980){print $1,$16;}else{next;}}' onek.data |
|
||||
-- sort +1d -2 +0nr -1
|
||||
|
@ -111,7 +110,6 @@ SELECT onek.unique1, onek.string4 FROM onek
|
|||
984 | VVVVxx
|
||||
(19 rows)
|
||||
|
||||
|
||||
--
|
||||
-- awk '{if($1>980){print $1,$16;}else{next;}}' onek.data |
|
||||
-- sort +1dr -2 +0n -1
|
||||
|
@ -142,7 +140,6 @@ SELECT onek.unique1, onek.string4 FROM onek
|
|||
999 | AAAAxx
|
||||
(19 rows)
|
||||
|
||||
|
||||
--
|
||||
-- awk '{if($1<20){print $1,$16;}else{next;}}' onek.data |
|
||||
-- sort +0nr -1 +1d -2
|
||||
|
|
|
@ -1,16 +1,13 @@
|
|||
---
|
||||
--- test creation of SERIAL column
|
||||
---
|
||||
|
||||
CREATE TABLE serialTest (f1 text, f2 serial);
|
||||
NOTICE: CREATE TABLE will create implicit sequence "serialtest_f2_seq" for serial column "serialtest.f2"
|
||||
|
||||
INSERT INTO serialTest VALUES ('foo');
|
||||
INSERT INTO serialTest VALUES ('bar');
|
||||
INSERT INTO serialTest VALUES ('force', 100);
|
||||
INSERT INTO serialTest VALUES ('wrong', NULL);
|
||||
ERROR: null value in column "f2" violates not-null constraint
|
||||
|
||||
SELECT * FROM serialTest;
|
||||
f1 | f2
|
||||
-------+-----
|
||||
|
@ -21,7 +18,6 @@ SELECT * FROM serialTest;
|
|||
|
||||
-- basic sequence operations using both text and oid references
|
||||
CREATE SEQUENCE sequence_test;
|
||||
|
||||
SELECT nextval('sequence_test'::text);
|
||||
nextval
|
||||
---------
|
||||
|
|
|
@ -1,16 +1,13 @@
|
|||
---
|
||||
--- test creation of SERIAL column
|
||||
---
|
||||
|
||||
CREATE TABLE serialTest (f1 text, f2 serial);
|
||||
NOTICE: CREATE TABLE will create implicit sequence "serialtest_f2_seq" for serial column "serialtest.f2"
|
||||
|
||||
INSERT INTO serialTest VALUES ('foo');
|
||||
INSERT INTO serialTest VALUES ('bar');
|
||||
INSERT INTO serialTest VALUES ('force', 100);
|
||||
INSERT INTO serialTest VALUES ('wrong', NULL);
|
||||
ERROR: null value in column "f2" violates not-null constraint
|
||||
|
||||
SELECT * FROM serialTest;
|
||||
f1 | f2
|
||||
-------+-----
|
||||
|
@ -21,7 +18,6 @@ SELECT * FROM serialTest;
|
|||
|
||||
-- basic sequence operations using both text and oid references
|
||||
CREATE SEQUENCE sequence_test;
|
||||
|
||||
SELECT nextval('sequence_test'::text);
|
||||
nextval
|
||||
---------
|
||||
|
|
|
@ -1372,7 +1372,6 @@ SELECT '' AS to_char_8, to_char(d1, 'YYYYTH YYYYth Jth')
|
|||
| 2001ST 2001st 2451911th
|
||||
(65 rows)
|
||||
|
||||
|
||||
SELECT '' AS to_char_9, to_char(d1, 'YYYY A.D. YYYY a.d. YYYY bc HH:MI:SS P.M. HH:MI:SS p.m. HH:MI:SS pm')
|
||||
FROM TIMESTAMP_TBL;
|
||||
to_char_9 | to_char
|
||||
|
|
|
@ -955,7 +955,6 @@ SELECT '' AS to_char_1, to_char(d1, 'DAY Day day DY Dy dy MONTH Month month RM M
|
|||
| MONDAY Monday monday MON Mon mon JANUARY January january I JAN Jan jan
|
||||
(66 rows)
|
||||
|
||||
|
||||
SELECT '' AS to_char_2, to_char(d1, 'FMDAY FMDay FMday FMMONTH FMMonth FMmonth FMRM')
|
||||
FROM TIMESTAMPTZ_TBL;
|
||||
to_char_2 | to_char
|
||||
|
@ -1100,7 +1099,6 @@ SELECT '' AS to_char_3, to_char(d1, 'Y,YYY YYYY YYY YY Y CC Q MM WW DDD DD D J')
|
|||
| 2,001 2001 001 01 1 21 1 01 01 001 01 2 2451911
|
||||
(66 rows)
|
||||
|
||||
|
||||
SELECT '' AS to_char_4, to_char(d1, 'FMY,YYY FMYYYY FMYYY FMYY FMY FMCC FMQ FMMM FMWW FMDDD FMDD FMD FMJ')
|
||||
FROM TIMESTAMPTZ_TBL;
|
||||
to_char_4 | to_char
|
||||
|
@ -1173,7 +1171,6 @@ SELECT '' AS to_char_4, to_char(d1, 'FMY,YYY FMYYYY FMYYY FMYY FMY FMCC FMQ FMMM
|
|||
| 2,001 2001 1 1 1 21 1 1 1 1 1 2 2451911
|
||||
(66 rows)
|
||||
|
||||
|
||||
SELECT '' AS to_char_5, to_char(d1, 'HH HH12 HH24 MI SS SSSS')
|
||||
FROM TIMESTAMPTZ_TBL;
|
||||
to_char_5 | to_char
|
||||
|
@ -1318,7 +1315,6 @@ SELECT '' AS to_char_6, to_char(d1, E'"HH:MI:SS is" HH:MI:SS "\\"text between qu
|
|||
| HH:MI:SS is 05:32:01 "text between quote marks"
|
||||
(66 rows)
|
||||
|
||||
|
||||
SELECT '' AS to_char_7, to_char(d1, 'HH24--text--MI--text--SS')
|
||||
FROM TIMESTAMPTZ_TBL;
|
||||
to_char_7 | to_char
|
||||
|
@ -1463,7 +1459,6 @@ SELECT '' AS to_char_8, to_char(d1, 'YYYYTH YYYYth Jth')
|
|||
| 2001ST 2001st 2451911th
|
||||
(66 rows)
|
||||
|
||||
|
||||
SELECT '' AS to_char_9, to_char(d1, 'YYYY A.D. YYYY a.d. YYYY bc HH:MI:SS P.M. HH:MI:SS p.m. HH:MI:SS pm')
|
||||
FROM TIMESTAMPTZ_TBL;
|
||||
to_char_9 | to_char
|
||||
|
|
|
@ -179,7 +179,6 @@ BEGIN;
|
|||
ROLLBACK;
|
||||
COMMIT; -- should not be in a transaction block
|
||||
WARNING: there is no transaction in progress
|
||||
|
||||
SELECT * FROM savepoints;
|
||||
a
|
||||
---
|
||||
|
|
|
@ -658,9 +658,7 @@ NOTICE: TG_TABLE_SCHEMA: public
|
|||
NOTICE: TG_NARGS: 2
|
||||
NOTICE: TG_ARGV: [23, skidoo]
|
||||
NOTICE: OLD: (1,update)
|
||||
|
||||
DROP TRIGGER show_trigger_data_trig on trigger_test;
|
||||
|
||||
DROP FUNCTION trigger_data();
|
||||
DROP TABLE trigger_test;
|
||||
--
|
||||
|
|
|
@ -188,7 +188,6 @@ SELECT count(*) FROM test_tsvector WHERE a @@ 'w:*|q:*';
|
|||
494
|
||||
(1 row)
|
||||
|
||||
|
||||
RESET enable_seqscan;
|
||||
INSERT INTO test_tsvector VALUES ('???', 'DFG:1A,2B,6C,10 FGH');
|
||||
SELECT * FROM ts_stat('SELECT a FROM test_tsvector') ORDER BY ndoc DESC, nentry DESC, word LIMIT 10;
|
||||
|
|
Loading…
Reference in New Issue