Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
8338cc03
Commit
8338cc03
authored
May 03, 2002
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the last traces of datatypes datetime and timespan.
parent
53cedcac
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
15 additions
and
28 deletions
+15
-28
contrib/oracle/Ora2Pg.pm
contrib/oracle/Ora2Pg.pm
+2
-2
contrib/spi/moddatetime.example
contrib/spi/moddatetime.example
+1
-1
contrib/spi/refint.c
contrib/spi/refint.c
+1
-1
contrib/spi/timetravel.example
contrib/spi/timetravel.example
+1
-1
contrib/tips/README.apachelog
contrib/tips/README.apachelog
+1
-1
doc/src/sgml/datatype.sgml
doc/src/sgml/datatype.sgml
+2
-16
doc/src/sgml/plsql.sgml
doc/src/sgml/plsql.sgml
+2
-2
doc/src/sgml/release.sgml
doc/src/sgml/release.sgml
+2
-1
src/backend/catalog/heap.c
src/backend/catalog/heap.c
+2
-2
src/interfaces/python/pgdb.py
src/interfaces/python/pgdb.py
+1
-1
No files found.
contrib/oracle/Ora2Pg.pm
View file @
8338cc03
...
...
@@ -1290,8 +1290,8 @@ sub _sql_type
'
VARCHAR2
'
=>
'
varchar
',
'
NVARCHAR2
'
=>
'
varchar
',
# The DATE data type is used to store the date and time information.
# Pg type
datetime
should match all needs
'
DATE
'
=>
'
datetime
',
# Pg type
timestamp
should match all needs
'
DATE
'
=>
'
timestamp
',
# Type LONG is like VARCHAR2 but with up to 2Gb.
# PG type text should match all needs or if you want you could use blob
'
LONG
'
=>
'
text
',
# Character data of variable length
...
...
contrib/spi/moddatetime.example
View file @
8338cc03
...
...
@@ -3,7 +3,7 @@ DROP TABLE mdt;
CREATE TABLE mdt (
id int4,
idesc text,
moddate
datetime DEFAULT datetime(CURRENT_TIMESTAMP)
NOT NULL
moddate
timestamp DEFAULT CURRENT_TIMESTAMP
NOT NULL
);
CREATE TRIGGER mdt_moddatetime
...
...
contrib/spi/refint.c
View file @
8338cc03
...
...
@@ -450,7 +450,7 @@ check_foreign_key(PG_FUNCTION_ARGS)
if
((
strcmp
(
type
,
"text"
)
&&
strcmp
(
type
,
"varchar"
)
&&
strcmp
(
type
,
"char"
)
&&
strcmp
(
type
,
"bpchar"
)
&&
strcmp
(
type
,
"date"
)
&&
strcmp
(
type
,
"
datetime
"
))
==
0
)
strcmp
(
type
,
"date"
)
&&
strcmp
(
type
,
"
timestamp
"
))
==
0
)
is_char_type
=
1
;
#ifdef DEBUG_QUERY
elog
(
DEBUG3
,
"Check_foreign_key Debug value %s type %s %d"
,
...
...
contrib/spi/timetravel.example
View file @
8338cc03
...
...
@@ -18,7 +18,7 @@ insert into tttest(price_id, price_val) values (2, 2);
insert into tttest(price_id, price_val,price_off) values (3, 3, 'infinity');
insert into tttest(price_id, price_val,price_off) values (3, 3,
datetime_abstime(datetime_mi_span('now', '100')
));
abstime('now'::timestamp - '100 days'::interval
));
insert into tttest(price_id, price_val,price_on) values (3, 3, 'infinity');
select * from tttest;
...
...
contrib/tips/README.apachelog
View file @
8338cc03
...
...
@@ -69,7 +69,7 @@ not as a finished idea.
--- apachelog.sql : ---
drop table access;
CREATE TABLE access (host char(200), ident char(200), authuser char(200), accdate
datetime
, request char(500), ttime int2, status int2, bytes int4) archive = none;
CREATE TABLE access (host char(200), ident char(200), authuser char(200), accdate
timestamp
, request char(500), ttime int2, status int2, bytes int4) archive = none;
grant all on access to nobody;
--- httpconf.txt: ---
...
...
doc/src/sgml/datatype.sgml
View file @
8338cc03
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v 1.9
1 2002/04/25 20:14:43
tgl Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v 1.9
2 2002/05/03 04:11:07
tgl Exp $
-->
<chapter id="datatype">
...
...
@@ -1340,24 +1340,10 @@ SELECT b, char_length(b) FROM test2;
outside that range are in <acronym>UTC</acronym>.
</para>
<para>
To ensure an upgrade path from versions of
<productname>PostgreSQL</productname> earlier than 7.0,
we recognize <type>datetime</type>
(equivalent to <type>timestamp</type>) and
<type>timespan</type> (equivalent to <type>interval</type>).
These types are
now restricted to having an
implicit translation to <type>timestamp</type> and
<type>interval</type>, and
support for these will be removed in the next release of
<productname>PostgreSQL</productname> (likely named 7.3).
</para>
<para>
The types <type>abstime</type>
and <type>reltime</type> are lower precision types which are used internally.
You are discouraged from using
any of
these types in new
You are discouraged from using these types in new
applications and are encouraged to move any old
ones over when appropriate. Any or all of these internal types
might disappear in a future release.
...
...
doc/src/sgml/plsql.sgml
View file @
8338cc03
<
!--
$
Header
:
/
cvsroot
/
pgsql
/
doc
/
src
/
sgml
/
Attic
/
plsql
.
sgml
,
v
2.5
7
2002
/
04
/
09
03
:
08
:
25
momjian
Exp
$
$
Header
:
/
cvsroot
/
pgsql
/
doc
/
src
/
sgml
/
Attic
/
plsql
.
sgml
,
v
2.5
8
2002
/
05
/
03
04
:
11
:
07
tgl
Exp
$
-->
<
chapter
id
=
"plpgsql"
>
...
...
@@ -2744,7 +2744,7 @@ show errors
package would become something like this:
<programlisting>
CREATE FUNCTION acs__add_user(INTEGER,INTEGER,VARCHAR,
DATETIME
,INTEGER,INTEGER,...)
CREATE FUNCTION acs__add_user(INTEGER,INTEGER,VARCHAR,
TIMESTAMP
,INTEGER,INTEGER,...)
RETURNS INTEGER AS '
DECLARE
user_id
ALIAS
FOR
$
1
;
...
...
doc/src/sgml/release.sgml
View file @
8338cc03
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/release.sgml,v 1.13
3 2002/04/18 20:01:08
tgl Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/release.sgml,v 1.13
4 2002/05/03 04:11:07
tgl Exp $
-->
<appendix id="release">
...
...
@@ -24,6 +24,7 @@ CDATA means the content is "SGML-free", so you can write without
worries about funny characters.
-->
<literallayout><![CDATA[
The last vestiges of support for type names datetime and timespan are gone; use timestamp and interval instead
Rule names are now per-relation, not global; DROP RULE and COMMENT ON RULE syntax changes accordingly
Readline and Zlib are now required by default and must be turned off explicitly if their use is not desired
Define a third class of function volatility to allow indexscans in more cases
...
...
src/backend/catalog/heap.c
View file @
8338cc03
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.19
7 2002/04/27 21:24:33
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.19
8 2002/05/03 04:11:08
tgl Exp $
*
*
* INTERFACE ROUTINES
...
...
@@ -1777,7 +1777,7 @@ cookDefault(ParseState *pstate,
* column's type. We store the expression without coercion,
* however, to avoid premature coercion in cases like
*
* CREATE TABLE tbl (fld
datetime
DEFAULT 'now'::text);
* CREATE TABLE tbl (fld
timestamp
DEFAULT 'now'::text);
*
* NB: this should match the code in optimizer/prep/preptlist.c that
* will actually do the coercion, to ensure we don't accept an
...
...
src/interfaces/python/pgdb.py
View file @
8338cc03
...
...
@@ -415,7 +415,7 @@ MONEY = pgdbType('money')
# this may be problematic as type are quite different ... I hope it won't hurt
DATETIME
=
pgdbType
(
'abstime'
,
'reltime'
,
'tinterval'
,
'date'
,
'time'
,
'timespan'
,
'timestamp'
'abstime'
,
'reltime'
,
'tinterval'
,
'date'
,
'time'
,
'timespan'
,
'timestamp'
,
'timestamptz'
,
'interval'
)
# OIDs are used for everything (types, tables, BLOBs, rows, ...). This may cause
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment