Copyright in partition.h and partition.c
Here is the copyright in partition.h:
* Copyright (c) 2007-2017, PostgreSQL Global Development Group
I think it's reasonable that that matches the copyright in partition.c,
but partition.c has:
* Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
Is that intentional?
Best regards,
Etsuro Fujita
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
On 2017/09/05 15:48, Etsuro Fujita wrote:
Here is the copyright in partition.h:
* Copyright (c) 2007-2017, PostgreSQL Global Development Group
I think it's reasonable that that matches the copyright in partition.c,
but partition.c has:* Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of CaliforniaIs that intentional?
No, it's unintentional. The difference may have resulted from copying
different files to become partition.h and partition.c, respectively.
Maybe, we should change both to say 2016-2017?
I don't know the exact rule for how we determine those years. Is there
some rule in place about that? When I look at execParallel.c, which
supposedly got introduced into the tree recently, I see 1996-2017. OTOH,
the files in contrib/bloom all have 2016-2017.
Thanks,
Amit
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Amit Langote <Langote_Amit_f8@lab.ntt.co.jp> writes:
On 2017/09/05 15:48, Etsuro Fujita wrote:
Here is the copyright in partition.h:
* Copyright (c) 2007-2017, PostgreSQL Global Development Group
I think it's reasonable that that matches the copyright in partition.c,
but partition.c has:* Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of CaliforniaIs that intentional?
No, it's unintentional. The difference may have resulted from copying
different files to become partition.h and partition.c, respectively.
Maybe, we should change both to say 2016-2017?
I don't know the exact rule for how we determine those years. Is there
some rule in place about that? When I look at execParallel.c, which
supposedly got introduced into the tree recently, I see 1996-2017. OTOH,
the files in contrib/bloom all have 2016-2017.
Our usual practice is to write the copyright like it is in partition.c
even in new files. This avoids any question about whether any of the
code was copied-and-pasted from somewhere else in PG. Even if not one
word in the file can be traced to code that was somewhere else before,
it seems to me that this is an appropriate thing to do, to give due
credit to those who came before us.
In short: we should make partition.h's copyright look like partition.c's
not vice versa.
regards, tom lane
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
On 2017/09/05 21:14, Tom Lane wrote:
Amit Langote <Langote_Amit_f8@lab.ntt.co.jp> writes:
On 2017/09/05 15:48, Etsuro Fujita wrote:
Here is the copyright in partition.h:
* Copyright (c) 2007-2017, PostgreSQL Global Development Group
I think it's reasonable that that matches the copyright in partition.c,
but partition.c has:* Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of CaliforniaIs that intentional?
No, it's unintentional. The difference may have resulted from copying
different files to become partition.h and partition.c, respectively.Maybe, we should change both to say 2016-2017?
I don't know the exact rule for how we determine those years. Is there
some rule in place about that? When I look at execParallel.c, which
supposedly got introduced into the tree recently, I see 1996-2017. OTOH,
the files in contrib/bloom all have 2016-2017.Our usual practice is to write the copyright like it is in partition.c
even in new files. This avoids any question about whether any of the
code was copied-and-pasted from somewhere else in PG. Even if not one
word in the file can be traced to code that was somewhere else before,
it seems to me that this is an appropriate thing to do, to give due
credit to those who came before us.
Agreed.
In short: we should make partition.h's copyright look like partition.c's
not vice versa.
Attached patch does that.
Thanks,
Amit
Attachments:
partition-h-copyright.patchtext/plain; charset=UTF-8; name=partition-h-copyright.patchDownload
diff --git a/src/include/catalog/partition.h b/src/include/catalog/partition.h
index 2283c675e9..619e4c9cc8 100644
--- a/src/include/catalog/partition.h
+++ b/src/include/catalog/partition.h
@@ -4,7 +4,8 @@
* Header file for structures and utility functions related to
* partitioning
*
- * Copyright (c) 2007-2017, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1994, Regents of the University of California
*
* src/include/catalog/partition.h
*
On 06 Sep 2017, at 02:56, Amit Langote <Langote_Amit_f8@lab.ntt.co.jp> wrote:
On 2017/09/05 21:14, Tom Lane wrote:
Amit Langote <Langote_Amit_f8@lab.ntt.co.jp> writes:
On 2017/09/05 15:48, Etsuro Fujita wrote:
Here is the copyright in partition.h:
* Copyright (c) 2007-2017, PostgreSQL Global Development Group
I think it's reasonable that that matches the copyright in partition.c,
but partition.c has:* Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of CaliforniaIs that intentional?
No, it's unintentional. The difference may have resulted from copying
different files to become partition.h and partition.c, respectively.Maybe, we should change both to say 2016-2017?
I don't know the exact rule for how we determine those years. Is there
some rule in place about that? When I look at execParallel.c, which
supposedly got introduced into the tree recently, I see 1996-2017. OTOH,
the files in contrib/bloom all have 2016-2017.Our usual practice is to write the copyright like it is in partition.c
even in new files. This avoids any question about whether any of the
code was copied-and-pasted from somewhere else in PG. Even if not one
word in the file can be traced to code that was somewhere else before,
it seems to me that this is an appropriate thing to do, to give due
credit to those who came before us.Agreed.
In short: we should make partition.h's copyright look like partition.c's
not vice versa.Attached patch does that.
This reminded me that I’d seen one of these before while hacking, and with some
grep and xargs abuse I spotted one more (there might be more that my command
line fu didn’t catch though). Attached could perhaps be included with the
above patch?
Perhaps the copyright script should be expanded to catch these? (and I
volunteer to attempt that unless it’s deemed an uninteresting feature)
cheers ./daniel
Attachments:
header_copyright.patchapplication/octet-stream; name=header_copyright.patchDownload
From a6c824e4c0b584a3066588651d2ef46e62413525 Mon Sep 17 00:00:00 2001
From: Daniel Gustafsson <daniel@yesql.se>
Date: Wed, 6 Sep 2017 12:28:42 +0200
Subject: [PATCH] Make header copyright match source file
---
src/include/replication/decode.h | 3 ++-
src/include/utils/backend_random.h | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/include/replication/decode.h b/src/include/replication/decode.h
index f9d81d77d0..729a5cf4ed 100644
--- a/src/include/replication/decode.h
+++ b/src/include/replication/decode.h
@@ -2,7 +2,8 @@
* decode.h
* PostgreSQL WAL to logical transformation
*
- * Portions Copyright (c) 2012-2017, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1994, Regents of the University of California
*
*-------------------------------------------------------------------------
*/
diff --git a/src/include/utils/backend_random.h b/src/include/utils/backend_random.h
index 9781aea0ac..c6534caa97 100644
--- a/src/include/utils/backend_random.h
+++ b/src/include/utils/backend_random.h
@@ -4,6 +4,7 @@
* Declarations for backend random number generation
*
* Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1994, Regents of the University of California
*
* src/include/utils/backend_random.h
*
--
2.14.1.145.gb3622a4ee