mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-30 21:51:19 +02:00
b866d2e2d7
family functions. Contain: conversion from a datetype to formatted text: to_char( datetime, text) to_char( timestamp, text) to_char( int4, text) to_char( int8, text) to_char( float4, text) to_char( float8, text) to_char( numeric, text) vice versa: to_date ( text, text) to_datetime ( text, text) to_timestamp ( text, text) to_number ( text, text) (convert to numeric) PostgreSQL to_char is very compatible with Oracle's to_char(), but not total exactly (now). Small differentions are in number formating. It will fix in next to_char() version. ! If will this patch aplly to the main tree, must be delete the current to_char version in contrib (directory "dateformat" and note in contrib's README), this patch not erase it (sorry Bruce). The patch patching files: doc/src/sgml/func.sgml ^^^^^^^^ Hmm, I'm not sure if my English... :( Check it anyone (volunteer)? Thomas, it is right? SGML is not my primary lang and compile the current PG docs tree is very happy job (hard variables setting in docs/sgml/Makefile --> HSTYLE= /home/users/t/thomas/.... :-) What add any definition to global configure.in and set Makefiles in docs tree via ./configure? src/backend/utils/adt/Makefile src/backend/utils/adt/formatting.c src/include/catalog/pg_proc.h src/include/utils/formatting.h Karel Zak <zakkr@zf.jcu.cz> http://home.zf.jcu.cz/~zakkr/
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
#-------------------------------------------------------------------------
|
|
#
|
|
# Makefile--
|
|
# Makefile for utils/adt
|
|
#
|
|
# IDENTIFICATION
|
|
# $Header: /cvsroot/pgsql/src/backend/utils/adt/Makefile,v 1.33 2000/01/25 23:53:51 momjian Exp $
|
|
#
|
|
#-------------------------------------------------------------------------
|
|
|
|
SRCDIR = ../../..
|
|
include ../../../Makefile.global
|
|
|
|
CFLAGS += -I../..
|
|
|
|
# seems to be required for some date/time stuff 1999/07/22 bjm
|
|
ifeq ($(CPU),alpha)
|
|
ifeq ($(CC), gcc)
|
|
CFLAGS+= -mieee
|
|
endif
|
|
ifeq ($(CC), egcs)
|
|
CFLAGS+= -mieee
|
|
endif
|
|
endif
|
|
|
|
OBJS = acl.o arrayfuncs.o arrayutils.o bool.o cash.o char.o chunk.o \
|
|
date.o datetime.o datum.o dt.o filename.o float.o \
|
|
geo_ops.o geo_selfuncs.o int.o int8.o like.o \
|
|
misc.o nabstime.o name.o not_in.o numeric.o numutils.o \
|
|
oid.o oracle_compat.o \
|
|
regexp.o regproc.o ruleutils.o selfuncs.o sets.o \
|
|
tid.o timestamp.o varchar.o varlena.o version.o \
|
|
network.o mac.o inet_net_ntop.o inet_net_pton.o \
|
|
ri_triggers.o pg_lzcompress.o pg_locale.o formatting.o
|
|
|
|
all: SUBSYS.o
|
|
|
|
SUBSYS.o: $(OBJS)
|
|
$(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
|
|
|
|
depend dep:
|
|
$(CC) -MM $(CFLAGS) *.c >depend
|
|
|
|
clean:
|
|
rm -f SUBSYS.o $(OBJS)
|
|
|
|
ifeq (depend,$(wildcard depend))
|
|
include depend
|
|
endif
|