Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: libpg_query
Source: https://github.com/pganalyze/libpg_query

Files: *
Copyright:
 Copyright (c) 2015, Lukas Fittl <lukas@fittl.com>
 Copyright (c) 2016-2023, Duboce Labs, Inc. (pganalyze) <team@pganalyze.com>
License: BSD-3-clause

License: BSD-3-clause
 All rights reserved.
 .
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:
 .
 * Redistributions of source code must retain the above copyright notice, this
 list of conditions and the following disclaimer.
 .
 * 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.
 .
 * Neither the name of pg_query 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 COPYRIGHT HOLDERS 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 COPYRIGHT HOLDER 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.

Files: src/postgres/*
Copyright:
 Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
 Portions Copyright (c) 1994, Regents of the University of California
 Copyright (c) 1983, 1995, 1996 Eric P. Allman
 Portions Copyright (c) 1993 Martin Birgmeier
 Copyright (c) 1998, 1999 Henry Spencer.  All rights reserved.
 Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
 Copyright (c) 2013 Hideaki Ohno <hide.o.j55{at}gmail.com>
 Copyright (C) 2012 Zilong Tan (eric.zltan@gmail.com)
License: PostgreSQL and BSD-3-clause and Martin-Birgmeier and Expat and ISC and Spencer-99

License: PostgreSQL
 PostgreSQL Database Management System
 (formerly known as Postgres, then as Postgres95)
 .
 Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
 .
 Portions Copyright (c) 1994, The Regents of the University of California
 .
 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 UNIVERSITY OF CALIFORNIA 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 UNIVERSITY OF CALIFORNIA 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 UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO
 PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.

License: 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.

License: Expat
 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.

License: ISC
 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.

License: Spencer-99
 Development of this software was funded, in part, by Cray Research Inc.,
 UUNET Communications Services Inc., Sun Microsystems Inc., and Scriptics
 Corporation, none of whom are responsible for the results.  The author
 thanks all of them.
 .
 Redistribution and use in source and binary forms -- with or without
 modification -- are permitted for any purpose, provided that
 redistributions in source form retain this entire copyright notice and
 indicate the origin and nature of any modifications.
 .
 I'd appreciate being given credit for this package in the documentation
 of software which uses it, but that is not a requirement.
 .
 THIS SOFTWARE IS PROVIDED ``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
 HENRY SPENCER 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.

Files: src/postgres/include/common/hashfn_unstable.h
       src/postgres/include/lib/hyperloglog.h
Copyright:
 Portions Copyright (c) 2014-2025, PostgreSQL Global Development Group
 Copyright (c) 2013 Hideaki Ohno <hide.o.j55{at}gmail.com>
 Copyright (C) 2012 Zilong Tan (eric.zltan@gmail.com)
License: Expat

Files: src/postgres/src_port_snprintf.c
Copyright:
 Copyright (c) 1983, 1995, 1996 Eric P. Allman
 Copyright (c) 1988, 1993, The Regents of the University of California
 Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
License: BSD-3-clause

Files: src/postgres/src_port_strlcpy.c
Copyright:
 Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
 Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
License: ISC

Files: src/postgres/include/gram.h
       src/postgres/include/pl_gram.h
       src/postgres/src_pl_plpgsql_src_pl_gram.c
Copyright:
 Copyright (C) 1984, 1989, 1990, 2000-2006, Free Software Foundation, Inc.
 Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
 Portions Copyright (c) 1994, The Regents of the University of California
License: GPL-2+ with Bison-exception-2.2

License: GPL-2+ with Bison-exception-2.2
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2, or (at your option)
 any later version.
 .
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 .
 On Debian systems, the complete text of the GNU General Public
 License version 2 can be found in `/usr/share/common-licenses/GPL-2'.
 .
 As a special exception, you may create a larger work that contains
 part or all of the Bison parser skeleton and distribute that work
 under terms of your choice, so long as that work isn't itself a
 parser generator using the skeleton or a modified version thereof
 as a parser skeleton.  Alternatively, if you modify or redistribute
 the parser skeleton itself, you may (at your option) remove this
 special exception, which will cause the skeleton and the resulting
 Bison output files to be licensed under the GNU General Public
 License without this special exception.
 .
 This special exception was added by the Free Software Foundation in
 version 2.2 of Bison.

Files: test/sql/postgres_regress/*
Copyright:
 Portions Copyright (c) 1996-2025, The PostgreSQL Global Development Group
 Portions Copyright (c) 1994, The Regents of the University of California
License: PostgreSQL

Files: test/sql/deparse-depesz/*
Copyright:
 Copyright (c) 2022-2023, Hubert 'depesz' Lubaczewski <depesz@depesz.com>
License: BSD-3-clause

Files: vendor/xxhash/*
Copyright: Copyright (C) 2012-2020 Yann Collet
License: BSD-2-clause

Files: vendor/upb/*
Copyright: Copyright 2008 Google Inc.
License: BSD-3-clause

Files: vendor/upb/third_party/utf8_range/*
Copyright:
 Copyright (c) 2019 Yibo Cai
 Copyright 2022 Google LLC
License: Expat

License: BSD-2-clause
 BSD 2-Clause License (https://www.opensource.org/licenses/bsd-license.php)
 .
 All rights reserved.
 .
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are
 met:
 .
    * Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
    * 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 COPYRIGHT HOLDERS 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 COPYRIGHT
 OWNER 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.

Files: debian/*
Copyright: 2022 Christoph Berg <myon@debian.org>
License: BSD-3-clause
