Commit fc946c39 authored by Peter Eisentraut's avatar Peter Eisentraut

Remove useless whitespace at end of lines

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