From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
Subject: [HACKERS] Money integration patches Here are patches to integrate the money data type. I have included some math and aggregate functions and have made the locale support optional by #ifdef USE_LOCALE bracketing of functions. Modules affected are: builtins.h.patch cash.c.patch cash.h.patch main.c.patch pg_aggregate.h.patch pg_operator.h.patch pg_proc.h.patch pg_type.h.patch I changed the data type to be pass-by-reference rather than by-value to pave the way for a larger internal representation (64-bit ints?). Also, I changed the tabbing of cash.c and cash.h to match most of the other Postgres source code files (4 space indent, 8 spaces == 1 tab). The locale stuff should be tested under another convention (Russian?) but I don't know what the correct results should be so perhaps someone else can give them a try. Will update docs and regression tests in the next few days.
Showing
- src/backend/main/main.c 2 additions, 1 deletionsrc/backend/main/main.c
- src/backend/port/Makefile.in 2 additions, 1 deletionsrc/backend/port/Makefile.in
- src/backend/utils/adt/cash.c 488 additions, 241 deletionssrc/backend/utils/adt/cash.c
- src/include/catalog/pg_aggregate.h 8 additions, 4 deletionssrc/include/catalog/pg_aggregate.h
- src/include/catalog/pg_operator.h 30 additions, 19 deletionssrc/include/catalog/pg_operator.h
- src/include/catalog/pg_proc.h 20 additions, 2 deletionssrc/include/catalog/pg_proc.h
- src/include/catalog/pg_type.h 10 additions, 19 deletionssrc/include/catalog/pg_type.h
- src/include/utils/builtins.h 2 additions, 1 deletionsrc/include/utils/builtins.h
- src/include/utils/cash.h 30 additions, 11 deletionssrc/include/utils/cash.h
Loading
Please register or sign in to comment