From 5a8cf30a2f12b9221432618f3aa95f1e58578a11 Mon Sep 17 00:00:00 2001 From: Dianjin Wang Date: Wed, 7 Oct 2026 09:27:27 +0800 Subject: [PATCH 1/2] License: register PostgreSQL components under their own notices Several files inherited from PostgreSQL carry a copyright notice and licence of their own, but LICENSE did not list them. Add entries, with the notices copied verbatim under licenses/: - BSD-3: BSD libc code under University of California notices (getopt, getopt_long, mkdtemp, pgmkdirp, fls, bsearch_arg, sort_template.h), the KAME MD5 and SHA-1 code, and pgcrypto's crypt-des.c. - BSD-2: the pgcrypto files copyright Marko Kreen. - ISC: strlcat.c, inet_net_ntop.c and timingsafe_bcmp.c. - MIT: pgcrypto's Blowfish (from PuTTY) and imath. - PostgreSQL-style: pageinspect, pgrowlocks and pgstattuple files copyright Tatsuo Ishii and Satoshi Nagayasu. - Public domain: pgcrypto's bcrypt code and five message catalogs. - Other permissive notices: pgcrypto's Rijndael, the GEQO operators adopted from Genitor, erand48.c and the pg_dump archiver. - fuzzystrmatch's dmetaphone.c, which carries both a notice placing the Text::DoubleMetaphone portions under the same terms as Perl and a PostgreSQL-style notice for the rest. Also list src/include/regex under the regex entry, and register Greenplum's gp_hyperloglog (BSD-2). Exclude the four licence texts that RAT does not recognize. Assisted-by: Claude Code --- LICENSE | 143 ++++++++++++++++++++++- licenses/LICENSE-blowfish.txt | 25 ++++ licenses/LICENSE-bsd2-pgcrypto.txt | 23 ++++ licenses/LICENSE-bsd3-crypt-des.txt | 34 ++++++ licenses/LICENSE-bsd3-regents.txt | 26 +++++ licenses/LICENSE-bsd3-wide.txt | 26 +++++ licenses/LICENSE-dmetaphone.txt | 37 ++++++ licenses/LICENSE-erand48.txt | 10 ++ licenses/LICENSE-geqo.txt | 8 ++ licenses/LICENSE-gp-hyperloglog.txt | 23 ++++ licenses/LICENSE-imath.txt | 19 +++ licenses/LICENSE-isc-timingsafe_bcmp.txt | 13 +++ licenses/LICENSE-pg_dump.txt | 6 + licenses/LICENSE-pgstattuple.txt | 42 +++++++ licenses/LICENSE-rijndael.txt | 13 +++ pom.xml | 4 + 16 files changed, 451 insertions(+), 1 deletion(-) create mode 100644 licenses/LICENSE-blowfish.txt create mode 100644 licenses/LICENSE-bsd2-pgcrypto.txt create mode 100644 licenses/LICENSE-bsd3-crypt-des.txt create mode 100644 licenses/LICENSE-bsd3-regents.txt create mode 100644 licenses/LICENSE-bsd3-wide.txt create mode 100644 licenses/LICENSE-dmetaphone.txt create mode 100644 licenses/LICENSE-erand48.txt create mode 100644 licenses/LICENSE-geqo.txt create mode 100644 licenses/LICENSE-gp-hyperloglog.txt create mode 100644 licenses/LICENSE-imath.txt create mode 100644 licenses/LICENSE-isc-timingsafe_bcmp.txt create mode 100644 licenses/LICENSE-pg_dump.txt create mode 100644 licenses/LICENSE-pgstattuple.txt create mode 100644 licenses/LICENSE-rijndael.txt diff --git a/LICENSE b/LICENSE index 8a9a455b548..f00d0da6f39 100644 --- a/LICENSE +++ b/LICENSE @@ -241,16 +241,77 @@ The PostgreSQL software includes: src/include/snowball/libstemmer see licenses/LICENSE-bsd3-snowball.txt + Code from the BSD C library, each file under its own University of + California copyright notice and the 3-clause BSD terms (in some + files the rescinded advertising clause is left as a numbered gap): + src/include/lib/sort_template.h + src/port/bsearch_arg.c + src/port/fls.c + src/port/getopt.c + src/port/getopt_long.c + src/port/mkdtemp.c + src/port/pgmkdirp.c + see licenses/LICENSE-bsd3-regents.txt + + MD5 and SHA-1 implementations from the KAME project: + src/common/md5.c + src/common/md5_int.h + src/common/sha1.c + src/common/sha1_int.h + see licenses/LICENSE-bsd3-wide.txt + + contrib/pgcrypto/crypt-des.c + see licenses/LICENSE-bsd3-crypt-des.txt + +---------------------------- + BSD 2 Clause License + + pgcrypto, copyright Marko Kreen: + contrib/pgcrypto/internal-sha2.c + contrib/pgcrypto/internal.c + contrib/pgcrypto/mbuf.c + contrib/pgcrypto/mbuf.h + contrib/pgcrypto/openssl.c + contrib/pgcrypto/pgcrypto.c + contrib/pgcrypto/pgcrypto.h + contrib/pgcrypto/pgp-armor.c + contrib/pgcrypto/pgp-cfb.c + contrib/pgcrypto/pgp-compress.c + contrib/pgcrypto/pgp-decrypt.c + contrib/pgcrypto/pgp-encrypt.c + contrib/pgcrypto/pgp-info.c + contrib/pgcrypto/pgp-mpi-internal.c + contrib/pgcrypto/pgp-mpi-openssl.c + contrib/pgcrypto/pgp-mpi.c + contrib/pgcrypto/pgp-pgsql.c + contrib/pgcrypto/pgp-pubdec.c + contrib/pgcrypto/pgp-pubenc.c + contrib/pgcrypto/pgp-pubkey.c + contrib/pgcrypto/pgp-s2k.c + contrib/pgcrypto/pgp.c + contrib/pgcrypto/pgp.h + contrib/pgcrypto/px-crypt.c + contrib/pgcrypto/px-crypt.h + contrib/pgcrypto/px-hmac.c + contrib/pgcrypto/px.c + contrib/pgcrypto/px.h + see licenses/LICENSE-bsd2-pgcrypto.txt + ---------------------------- Internet Systems Consortium/Internet Software Consortium (ISC) LICENSE + src/port/strlcat.c src/port/strlcpy.c see licenses/LICENSE-strlcpy.txt src/backend/utils/adt/inet_cidr_ntop.c src/backend/utils/adt/inet_net_pton.c + src/port/inet_net_ntop.c see licenses/LICENSE-isc.txt + src/port/timingsafe_bcmp.c + see licenses/LICENSE-isc-timingsafe_bcmp.txt + ---------------------------- Perl Artistic License 2.0 (exception) @@ -278,7 +339,8 @@ The PostgreSQL software includes: ---------------------------- regex LICENSE - src/backend/regex + src/backend/regex + src/include/regex see licenses/LICENSE-regex.txt ---------------------------- @@ -287,6 +349,12 @@ The PostgreSQL software includes: src/port/gettimeofday.c see licenses/LICENSE-gettimeofday.txt + contrib/pageinspect/btreefuncs.c + contrib/pgrowlocks/pgrowlocks.c + contrib/pgstattuple/pgstatindex.c + contrib/pgstattuple/pgstattuple.c + see licenses/LICENSE-pgstattuple.txt + ---------------------------- Boost Software License - Version 1.0 @@ -312,6 +380,15 @@ The PostgreSQL software includes: src/include/lib/hyperloglog.h see licenses/LICENSE-hyperloglog.txt + Blowfish, from PuTTY: + contrib/pgcrypto/blf.c + contrib/pgcrypto/blf.h + see licenses/LICENSE-blowfish.txt + + contrib/pgcrypto/imath.c + contrib/pgcrypto/imath.h + see licenses/LICENSE-imath.txt + ---------------------------- Public Domain @@ -322,6 +399,17 @@ The PostgreSQL software includes: src/timezone/zic.c src/timezone/data/tzdata.zi + bcrypt, written by Solar Designer: + contrib/pgcrypto/crypt-blowfish.c + contrib/pgcrypto/crypt-gensalt.c + + Message translations whose headers place them in the public domain: + src/bin/initdb/po/zh_CN.po + src/bin/pg_config/po/zh_CN.po + src/bin/pg_controldata/po/sv.po + src/bin/pg_ctl/po/zh_CN.po + src/bin/scripts/po/zh_CN.po + ---------------------------- Project X0213 License @@ -338,6 +426,50 @@ The PostgreSQL software includes: src/backend/utils/mb/Unicode/gb-18030-2000.xml see licenses/LICENSE-icu-data.txt +---------------------------- + Other permissive licenses + + Rijndael (AES), copyright Brian Gladman, free use subject to + acknowledgment of its origin: + contrib/pgcrypto/rijndael.c + contrib/pgcrypto/rijndael.h + see licenses/LICENSE-rijndael.txt + + Genetic query optimizer recombination operators, adopted from + Genitor, copyright Darrell L. Whitley: + src/backend/optimizer/geqo/geqo_copy.c + src/backend/optimizer/geqo/geqo_cx.c + src/backend/optimizer/geqo/geqo_erx.c + src/backend/optimizer/geqo/geqo_selection.c + see licenses/LICENSE-geqo.txt + + src/port/erand48.c + see licenses/LICENSE-erand48.txt + + pg_dump archiver, copyright Philip Warner: + src/bin/pg_dump/pg_backup.h + src/bin/pg_dump/pg_backup_archiver.c + src/bin/pg_dump/pg_backup_archiver.h + src/bin/pg_dump/pg_backup_custom.c + src/bin/pg_dump/pg_backup_directory.c + src/bin/pg_dump/pg_backup_null.c + src/bin/pg_dump/pg_backup_tar.c + src/bin/pg_dump/pg_restore.c + see licenses/LICENSE-pg_dump.txt + +---------------------------- + Perl License, and a PostgreSQL-style License + + Double Metaphone, ported from the Text::DoubleMetaphone Perl module: + contrib/fuzzystrmatch/dmetaphone.c + + The portions from Text::DoubleMetaphone, copyright Maurice Aubrey, + may be redistributed and/or modified under the same terms as Perl + itself. The remaining code, copyright North Carolina State Highway + Patrol, is under a PostgreSQL-style license. The file carries both + notices; they are reproduced in: + see licenses/LICENSE-dmetaphone.txt + ================================================================================ This product contains significant parts that were originally based on software from VMware, Inc. or its affiliates. @@ -361,6 +493,15 @@ The Greenplum Database software includes: (see the Apache License above; also shipped in-tree as src/test/unit/cmockery/LICENSE.txt) +---------------------------- + BSD 2 Clause License + + HyperLogLog extension, copyright Tomas Vondra, Conversant, Inc. and + VMware, Inc.: + src/backend/utils/hyperloglog/gp_hyperloglog.c + src/include/utils/hyperloglog/gp_hyperloglog.h + see licenses/LICENSE-gp-hyperloglog.txt + ---------------------------- Stream License diff --git a/licenses/LICENSE-blowfish.txt b/licenses/LICENSE-blowfish.txt new file mode 100644 index 00000000000..1960cc2b0f5 --- /dev/null +++ b/licenses/LICENSE-blowfish.txt @@ -0,0 +1,25 @@ +PuTTY is copyright 1997-2007 Simon Tatham. + +Portions copyright Robert de Bath, Joris van Rantwijk, Delian +Delchev, Andreas Schultz, Jeroen Massar, Wez Furlong, Nicolas Barry, +Justin Bradford, Ben Harris, Malcolm Smith, Ahmad Khalifa, Markus +Kuhn, and CORE SDI S.A. + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation files +(the "Software"), to deal in the Software without restriction, +including without limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of the Software, +and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE +FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/licenses/LICENSE-bsd2-pgcrypto.txt b/licenses/LICENSE-bsd2-pgcrypto.txt new file mode 100644 index 00000000000..a6fc398e7c2 --- /dev/null +++ b/licenses/LICENSE-bsd2-pgcrypto.txt @@ -0,0 +1,23 @@ +Copyright (c) 2001 Marko Kreen +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. diff --git a/licenses/LICENSE-bsd3-crypt-des.txt b/licenses/LICENSE-bsd3-crypt-des.txt new file mode 100644 index 00000000000..264421253d8 --- /dev/null +++ b/licenses/LICENSE-bsd3-crypt-des.txt @@ -0,0 +1,34 @@ +Copyright (c) 1994 David Burren +All rights reserved. + +Adapted for FreeBSD-2.0 by Geoffrey M. Rehmet +this file should now *only* export crypt(), in order to make +binaries of libcrypt exportable from the USA + +Adapted for FreeBSD-4.0 by Mark R V Murray +this file should now *only* export px_crypt_des(), in order to make +a module that can be optionally included in libcrypt. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. Neither the name of the author nor the names of other contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. diff --git a/licenses/LICENSE-bsd3-regents.txt b/licenses/LICENSE-bsd3-regents.txt new file mode 100644 index 00000000000..e608961895f --- /dev/null +++ b/licenses/LICENSE-bsd3-regents.txt @@ -0,0 +1,26 @@ +Copyright (c) 1987, 1993 +The Regents of the University of California. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. Neither the name of the University nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. diff --git a/licenses/LICENSE-bsd3-wide.txt b/licenses/LICENSE-bsd3-wide.txt new file mode 100644 index 00000000000..83dc5db0fb9 --- /dev/null +++ b/licenses/LICENSE-bsd3-wide.txt @@ -0,0 +1,26 @@ +Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. Neither the name of the project nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. diff --git a/licenses/LICENSE-dmetaphone.txt b/licenses/LICENSE-dmetaphone.txt new file mode 100644 index 00000000000..a724c4487af --- /dev/null +++ b/licenses/LICENSE-dmetaphone.txt @@ -0,0 +1,37 @@ +Most of this code is directly from the Text::DoubleMetaphone perl module +version 0.05 available from https://www.cpan.org/. +It bears this copyright notice: + + Copyright 2000, Maurice Aubrey . + All rights reserved. + + This code is based heavily on the C++ implementation by + Lawrence Philips and incorporates several bug fixes courtesy + of Kevin Atkinson . + + This module is free software; you may redistribute it and/or + modify it under the same terms as Perl itself. + +The remaining code is authored by Andrew Dunstan and + and is covered this copyright: + + Copyright 2003, North Carolina State Highway Patrol. + All rights reserved. + + Permission to use, copy, modify, and distribute this software and its + documentation for any purpose, without fee, and without a written agreement + is hereby granted, provided that the above copyright notice and this + paragraph and the following two paragraphs appear in all copies. + + IN NO EVENT SHALL THE NORTH CAROLINA STATE HIGHWAY PATROL BE LIABLE TO ANY + PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, + INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS + DOCUMENTATION, EVEN IF THE NORTH CAROLINA STATE HIGHWAY PATROL HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + THE NORTH CAROLINA STATE HIGHWAY PATROL SPECIFICALLY DISCLAIMS ANY + WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED + HEREUNDER IS ON AN "AS IS" BASIS, AND THE NORTH CAROLINA STATE HIGHWAY PATROL + HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR + MODIFICATIONS. diff --git a/licenses/LICENSE-erand48.txt b/licenses/LICENSE-erand48.txt new file mode 100644 index 00000000000..04767660ceb --- /dev/null +++ b/licenses/LICENSE-erand48.txt @@ -0,0 +1,10 @@ +Portions Copyright (c) 1993 Martin Birgmeier +All rights reserved. + +You may redistribute unmodified or modified versions of this source +code provided that the above copyright notice and this and the +following conditions are retained. + +This software is provided ``as is'', and comes with no warranties +of any kind. I shall in no event be liable for anything that happens +to anyone/anything when using this software. diff --git a/licenses/LICENSE-geqo.txt b/licenses/LICENSE-geqo.txt new file mode 100644 index 00000000000..782516ad15d --- /dev/null +++ b/licenses/LICENSE-geqo.txt @@ -0,0 +1,8 @@ +Copyright (c) 1990 +Darrell L. Whitley +Computer Science Department +Colorado State University + +Permission is hereby granted to copy all or any part of +this program for free distribution. The author's name +and this copyright notice must be included in any copy. diff --git a/licenses/LICENSE-gp-hyperloglog.txt b/licenses/LICENSE-gp-hyperloglog.txt new file mode 100644 index 00000000000..89f20b099e8 --- /dev/null +++ b/licenses/LICENSE-gp-hyperloglog.txt @@ -0,0 +1,23 @@ +Copyright 2012, Tomas Vondra (tv@fuzzy.cz). All rights reserved. +Copyright 2015, Conversant, Inc. All rights reserved. +Copyright 2018, VMware, Inc. or its affiliates. All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are +permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of +conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list +of conditions and the following disclaimer in the documentation and/or other materials +provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY TOMAS VONDRA, CONVERSANT INC, VMWARE, INC. OF ITS AFFILIATES. +AND ANY OTHER CONTRIBUTORS (THE "AUTHORS") ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, +STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/licenses/LICENSE-imath.txt b/licenses/LICENSE-imath.txt new file mode 100644 index 00000000000..7454e5312a8 --- /dev/null +++ b/licenses/LICENSE-imath.txt @@ -0,0 +1,19 @@ +Copyright (C) 2002-2007 Michael J. Fromberger, All Rights Reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/licenses/LICENSE-isc-timingsafe_bcmp.txt b/licenses/LICENSE-isc-timingsafe_bcmp.txt new file mode 100644 index 00000000000..a9b812133fb --- /dev/null +++ b/licenses/LICENSE-isc-timingsafe_bcmp.txt @@ -0,0 +1,13 @@ +Copyright (c) 2010 Damien Miller. All rights reserved. + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/licenses/LICENSE-pg_dump.txt b/licenses/LICENSE-pg_dump.txt new file mode 100644 index 00000000000..c51fca4497b --- /dev/null +++ b/licenses/LICENSE-pg_dump.txt @@ -0,0 +1,6 @@ +Copyright (c) 2000, Philip Warner +Rights are granted to use this software in any way so long +as this notice is not removed. + +The author is not responsible for loss or damages that may +result from its use. diff --git a/licenses/LICENSE-pgstattuple.txt b/licenses/LICENSE-pgstattuple.txt new file mode 100644 index 00000000000..f387d02a1d3 --- /dev/null +++ b/licenses/LICENSE-pgstattuple.txt @@ -0,0 +1,42 @@ +Copyright (c) 2005-2006 Tatsuo Ishii +Copyright (c) 2001,2002 Tatsuo Ishii + +Permission to use, copy, modify, and distribute this software and +its documentation for any purpose, without fee, and without a +written agreement is hereby granted, provided that the above +copyright notice and this paragraph and the following two +paragraphs appear in all copies. + +IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, +INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING +LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS +DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED +OF THE POSSIBILITY OF SUCH DAMAGE. + +THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS +IS" BASIS, AND THE AUTHOR HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, +SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. + +---- + +Copyright (c) 2006 Satoshi Nagayasu + +Permission to use, copy, modify, and distribute this software and +its documentation for any purpose, without fee, and without a +written agreement is hereby granted, provided that the above +copyright notice and this paragraph and the following two +paragraphs appear in all copies. + +IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, +INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING +LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS +DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED +OF THE POSSIBILITY OF SUCH DAMAGE. + +THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS +IS" BASIS, AND THE AUTHOR HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, +SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. diff --git a/licenses/LICENSE-rijndael.txt b/licenses/LICENSE-rijndael.txt new file mode 100644 index 00000000000..e597416b726 --- /dev/null +++ b/licenses/LICENSE-rijndael.txt @@ -0,0 +1,13 @@ +This is an independent implementation of the encryption algorithm: + + RIJNDAEL by Joan Daemen and Vincent Rijmen + +which is a candidate algorithm in the Advanced Encryption Standard +programme of the US National Institute of Standards and Technology. + +Copyright in this implementation is held by Dr B R Gladman but I +hereby give permission for its free direct or derivative use subject +to acknowledgment of its origin and compliance with any conditions +that the originators of the algorithm place on its exploitation. + +Dr Brian Gladman (gladman@seven77.demon.co.uk) 14th January 1999 diff --git a/pom.xml b/pom.xml index 32080ccaddd..3101ac0af81 100644 --- a/pom.xml +++ b/pom.xml @@ -1884,6 +1884,10 @@ code or new licensing patterns. --> licenses/LICENSE-amalgamate.txt licenses/LICENSE-boost.txt + licenses/LICENSE-erand48.txt + licenses/LICENSE-geqo.txt + licenses/LICENSE-pg_dump.txt + licenses/LICENSE-rijndael.txt licenses/LICENSE-termcolor.txt licenses/LICENSE-vixie-cron.txt licenses/LICENSE-x0213.txt From cdea21cabe943c74ab65e9bcfb2c075e852f2883 Mon Sep 17 00:00:00 2001 From: Dianjin Wang Date: Wed, 7 Oct 2026 10:04:03 +0800 Subject: [PATCH 2/2] License: note the Broadcom notices and the zstd test file Fourteen ORCA files that Greenplum added in 2024 carry a "Copyright (C) 2024 Broadcom" or "VMware by Broadcom" notice, while the Greenplum section of LICENSE names only VMware's 2004-2020 copyright. Say that these files are part of Greenplum Database under the same licence. src/bin/gpfdist/regress/data/gpfdist2/lineitem.tbl.zst is compressed TPC-H text used by the gpfdist tests, like the .gz and .bz2 copies next to it, but README.apache.md did not list it and the binary check never looked at .zst files. List it, add zst to the checked extensions, and allowlist it. Assisted-by: Claude Code --- .github/workflows/apache-rat-audit.yml | 5 +++-- LICENSE | 5 +++++ README.apache.md | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/apache-rat-audit.yml b/.github/workflows/apache-rat-audit.yml index feae7e139e3..4003427ebcc 100644 --- a/.github/workflows/apache-rat-audit.yml +++ b/.github/workflows/apache-rat-audit.yml @@ -117,7 +117,7 @@ jobs: - name: Check for binary files run: | echo "Checking for binary files..." - echo "Checking extensions: class, jar, tar, tgz, zip, exe, dll, so, gz, bz2, deb, rpm, gppkg, bin" + echo "Checking extensions: class, jar, tar, tgz, zip, exe, dll, so, gz, bz2, zst, deb, rpm, gppkg, bin" echo "----------------------------------------------------------------------" # Binary file allowlist, see README.apache.md @@ -129,12 +129,13 @@ jobs: "src/bin/gpfdist/regress/data/gpfdist2/gz_multi_chunk_2.tbl.gz" "src/bin/gpfdist/regress/data/gpfdist2/lineitem.tbl.bz2" "src/bin/gpfdist/regress/data/gpfdist2/lineitem.tbl.gz" + "src/bin/gpfdist/regress/data/gpfdist2/lineitem.tbl.zst" "gpMgmt/test/behave/mgmt_utils/steps/data/sample.gppkg" "src/bin/pgevent/MSG00001.bin" ) # Check for specific binary file extensions - binary_extensions="class jar tar tgz zip exe dll so gz bz2 deb rpm gppkg bin" + binary_extensions="class jar tar tgz zip exe dll so gz bz2 zst deb rpm gppkg bin" echo "BINARY_EXTENSIONS=${binary_extensions}" >> $GITHUB_ENV binary_results="" binaryfiles_found=false diff --git a/LICENSE b/LICENSE index f00d0da6f39..9c5b476682c 100644 --- a/LICENSE +++ b/LICENSE @@ -480,6 +480,11 @@ Copyright (c) 2004-2020 VMware, Inc. or its affiliates. All Rights Reserved. All Rights Reserved. +Some ORCA query optimizer files that Greenplum Database added in 2024 +carry a "Copyright (C) 2024 Broadcom" or "Copyright (C) 2024 VMware by +Broadcom" notice instead; they are part of Greenplum Database and are +covered by the same license. + Greenplum Database is licensed under the Apache License Version 2.0 (see LICENSE) and is based on the PostgreSQL Database Management System. diff --git a/README.apache.md b/README.apache.md index adeedace124..007c062ad47 100644 --- a/README.apache.md +++ b/README.apache.md @@ -50,6 +50,7 @@ The following compressed files are included in the source tree. These files are - src/bin/gpfdist/regress/data/gpfdist2/gz_multi_chunk_2.tbl.gz - src/bin/gpfdist/regress/data/gpfdist2/lineitem.tbl.bz2 - src/bin/gpfdist/regress/data/gpfdist2/lineitem.tbl.gz +- src/bin/gpfdist/regress/data/gpfdist2/lineitem.tbl.zst ## Binary Files in Source