Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
336ce4aa
Commit
336ce4aa
authored
23 years ago
by
Peter Eisentraut
Browse files
Options
Downloads
Patches
Plain Diff
This is obsolete and doesn't work anymore.
parent
2c3bd9e8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/unixdate/Makefile
+0
-18
0 additions, 18 deletions
contrib/unixdate/Makefile
contrib/unixdate/unixdate.sql
+0
-34
0 additions, 34 deletions
contrib/unixdate/unixdate.sql
with
0 additions
and
52 deletions
contrib/unixdate/Makefile
deleted
100644 → 0
+
0
−
18
View file @
2c3bd9e8
#
# $Header: /cvsroot/pgsql/contrib/unixdate/Attic/Makefile,v 1.3 2000/07/09 13:13:50 petere Exp $
#
subdir
=
contrib/unixdate
top_builddir
=
../..
include
../../src/Makefile.global
all
:
install
:
installdirs
$(
INSTALL_DATA
)
unixdate.sql
$(
datadir
)
/contrib
uninstall
:
rm
-f
$(
datadir
)
/contrib/unixdate.sql
installdirs
:
$(
mkinstalldirs
)
$(
datadir
)
/contrib
This diff is collapsed.
Click to expand it.
contrib/unixdate/unixdate.sql
deleted
100644 → 0
+
0
−
34
View file @
2c3bd9e8
-- unixdate
-- Routines to convert int4 (Unix system time) to datetime
-- and int4 (delta time in seconds) to timespan
--
-- Thomas Lockhart (lockhart@alumni.caltech.edu)
-- 1997-11-25
--
-- This cheats and reuses existing code in the standard package.
-- Can not include this directly because built-in functions are optimized
-- into a cache and the duplicate function names abstime_datetime() and
-- reltime_timespan() would result in duplicate constants.
--
-- This works with Postgres v6.2 and higher.
--
-- Conversions from integer to datetime
--
CREATE
FUNCTION
abstime_datetime
(
int4
)
RETURNS
datetime
AS
'-'
LANGUAGE
'internal'
;
CREATE
FUNCTION
datetime
(
int4
)
RETURNS
datetime
AS
'select abstime_datetime($1)'
LANGUAGE
'SQL'
;
CREATE
FUNCTION
reltime_timespan
(
int4
)
RETURNS
timespan
AS
'-'
LANGUAGE
'internal'
;
CREATE
FUNCTION
timespan
(
int4
)
RETURNS
timespan
AS
'select reltime_timespan($1)'
LANGUAGE
'SQL'
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment