pgsql-server/src backend/utils/adt/varlena.c i ...

Started by Bruce Momjianalmost 24 years ago2 messagescomitters
Jump to latest
#1Bruce Momjian
bruce@momjian.us

CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: momjian@postgresql.org 02/08/21 23:24:01

Modified files:
src/backend/utils/adt: varlena.c
src/include/catalog: pg_proc.h
src/include/utils: builtins.h
src/test/regress/expected: strings.out
src/test/regress/sql: strings.sql

Log message:
Add:

replace(string, from, to)
-- replaces all occurrences of "from" in "string" to "to"
split(string, fldsep, column)
-- splits "string" on "fldsep" and returns "column" number piece
to_hex(int32_num) & to_hex(int64_num)
-- takes integer number and returns as hex string

Joe Conway

#2Christopher Kings-Lynne
chriskl@familyhealth.com.au
In reply to: Bruce Momjian (#1)
Re: pgsql-server/src backend/utils/adt/varlena.c i ...

Log message:
Add:

replace(string, from, to)
-- replaces all occurrences of "from" in "string" to "to"
split(string, fldsep, column)
-- splits "string" on "fldsep" and returns "column" number piece
to_hex(int32_num) & to_hex(int64_num)
-- takes integer number and returns as hex string

Has someone checked for buffer overflows in these new functions? :)

Chris