pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Skip temp tables from basebackup.
8+ messages / 4 participants
[nested] [flat]
* pgsql: Skip temp tables from basebackup.
@ 2018-03-27 13:14 Teodor Sigaev <teodor@sigaev.ru>
2018-03-27 14:17 ` Re: pgsql: Skip temp tables from basebackup. Teodor Sigaev <teodor@sigaev.ru>
0 siblings, 1 reply; 8+ messages in thread
From: Teodor Sigaev @ 2018-03-27 13:14 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Skip temp tables from basebackup.
Do not store temp tables in basebackup, they will not be visible anyway, so,
there are not reasons to store them.
Author: David Steel
Reviewed by: me
Discussion: https://www.postgresql.org/message-id/flat/5ea4d26a-a453-c1b7-eff9-5a3ef8f8aceb@pgmasters.net
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/920a5e500a119b03356fb1fb64a677eb1aa5fc6f
Modified Files
--------------
doc/src/sgml/protocol.sgml | 2 +-
src/backend/replication/basebackup.c | 10 ++++++
src/backend/storage/file/fd.c | 3 +-
src/bin/pg_basebackup/t/010_pg_basebackup.pl | 49 +++++++++++++++++++++++++++-
src/include/storage/fd.h | 1 +
5 files changed, 61 insertions(+), 4 deletions(-)
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pgsql: Skip temp tables from basebackup.
2018-03-27 13:14 pgsql: Skip temp tables from basebackup. Teodor Sigaev <teodor@sigaev.ru>
@ 2018-03-27 14:17 ` Teodor Sigaev <teodor@sigaev.ru>
2018-03-27 14:24 ` Re: pgsql: Skip temp tables from basebackup. Teodor Sigaev <teodor@sigaev.ru>
2018-03-27 14:25 ` Re: pgsql: Skip temp tables from basebackup. David Steele <david@pgmasters.net>
2018-03-27 14:34 ` Re: pgsql: Skip temp tables from basebackup. Andrew Gierth <andrew@tao11.riddles.org.uk>
0 siblings, 3 replies; 8+ messages in thread
From: Teodor Sigaev @ 2018-03-27 14:17 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org, David Steele <david@pgmasters.net>
Hm, seems, Windows doesn't like this patch
https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=bowerbird&dt=2018-03-27
David, could you have a look?
Teodor Sigaev wrote:
> Skip temp tables from basebackup.
>
> Do not store temp tables in basebackup, they will not be visible anyway, so,
> there are not reasons to store them.
>
> Author: David Steel
> Reviewed by: me
> Discussion: https://www.postgresql.org/message-id/flat/5ea4d26a-a453-c1b7-eff9-5a3ef8f8aceb@pgmasters.net
>
> Branch
> ------
> master
>
> Details
> -------
> https://git.postgresql.org/pg/commitdiff/920a5e500a119b03356fb1fb64a677eb1aa5fc6f
>
> Modified Files
> --------------
> doc/src/sgml/protocol.sgml | 2 +-
> src/backend/replication/basebackup.c | 10 ++++++
> src/backend/storage/file/fd.c | 3 +-
> src/bin/pg_basebackup/t/010_pg_basebackup.pl | 49 +++++++++++++++++++++++++++-
> src/include/storage/fd.h | 1 +
> 5 files changed, 61 insertions(+), 4 deletions(-)
>
--
Teodor Sigaev E-mail: teodor@sigaev.ru
WWW: http://www.sigaev.ru/
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pgsql: Skip temp tables from basebackup.
2018-03-27 13:14 pgsql: Skip temp tables from basebackup. Teodor Sigaev <teodor@sigaev.ru>
2018-03-27 14:17 ` Re: pgsql: Skip temp tables from basebackup. Teodor Sigaev <teodor@sigaev.ru>
@ 2018-03-27 14:24 ` Teodor Sigaev <teodor@sigaev.ru>
2018-03-27 14:34 ` Re: pgsql: Skip temp tables from basebackup. David Steele <david@pgmasters.net>
2 siblings, 1 reply; 8+ messages in thread
From: Teodor Sigaev @ 2018-03-27 14:24 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org, David Steele <david@pgmasters.net>
> Hm, seems, Windows doesn't like this patch
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=bowerbird&dt=2018-03-27
sorry for wrong URL
https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=bowerbird&dt=2018-03-27%2013%3A30%3A24
--
Teodor Sigaev E-mail: teodor@sigaev.ru
WWW: http://www.sigaev.ru/
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pgsql: Skip temp tables from basebackup.
2018-03-27 13:14 pgsql: Skip temp tables from basebackup. Teodor Sigaev <teodor@sigaev.ru>
2018-03-27 14:17 ` Re: pgsql: Skip temp tables from basebackup. Teodor Sigaev <teodor@sigaev.ru>
2018-03-27 14:24 ` Re: pgsql: Skip temp tables from basebackup. Teodor Sigaev <teodor@sigaev.ru>
@ 2018-03-27 14:34 ` David Steele <david@pgmasters.net>
2018-03-27 14:43 ` Re: pgsql: Skip temp tables from basebackup. Teodor Sigaev <teodor@sigaev.ru>
0 siblings, 1 reply; 8+ messages in thread
From: David Steele @ 2018-03-27 14:34 UTC (permalink / raw)
To: Teodor Sigaev <teodor@sigaev.ru>; pgsql-committers@lists.postgresql.org
On 3/27/18 10:24 AM, Teodor Sigaev wrote:
>> Hm, seems, Windows doesn't like this patch
>> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=bowerbird&dt=2018-03-27
>>
>
> sorry for wrong URL
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=bowerbird&dt=2018-03-27%2013%3A30%3A24
Looks like the skip total for Windows is incorrect. The attached should
fix it.
Thanks,
--
-David
david@pgmasters.net
Attachments:
backup-temp-test-fix.patch (text/plain, 536B) download
diff --git a/src/bin/pg_basebackup/t/010_pg_basebackup.pl b/src/bin/pg_basebackup/t/010_pg_basebackup.pl
index e6018de054..32d21ce644 100644
--- a/src/bin/pg_basebackup/t/010_pg_basebackup.pl
+++ b/src/bin/pg_basebackup/t/010_pg_basebackup.pl
@@ -183,7 +183,7 @@ unlink "$pgdata/$superlongname";
# skip on Windows.
SKIP:
{
- skip "symlinks not supported on Windows", 15 if ($windows_os);
+ skip "symlinks not supported on Windows", 17 if ($windows_os);
# Move pg_replslot out of $pgdata and create a symlink to it.
$node->stop;
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pgsql: Skip temp tables from basebackup.
2018-03-27 13:14 pgsql: Skip temp tables from basebackup. Teodor Sigaev <teodor@sigaev.ru>
2018-03-27 14:17 ` Re: pgsql: Skip temp tables from basebackup. Teodor Sigaev <teodor@sigaev.ru>
2018-03-27 14:24 ` Re: pgsql: Skip temp tables from basebackup. Teodor Sigaev <teodor@sigaev.ru>
2018-03-27 14:34 ` Re: pgsql: Skip temp tables from basebackup. David Steele <david@pgmasters.net>
@ 2018-03-27 14:43 ` Teodor Sigaev <teodor@sigaev.ru>
0 siblings, 0 replies; 8+ messages in thread
From: Teodor Sigaev @ 2018-03-27 14:43 UTC (permalink / raw)
To: David Steele <david@pgmasters.net>; pgsql-committers@lists.postgresql.org
Thanks for everyone, pushed. Let us follow the pgbuildfarm
David Steele wrote:
> On 3/27/18 10:24 AM, Teodor Sigaev wrote:
>>> Hm, seems, Windows doesn't like this patch
>>> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=bowerbird&dt=2018-03-27
>>>
>>
>> sorry for wrong URL
>> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=bowerbird&dt=2018-03-27%2013%3A30%3A24
>
> Looks like the skip total for Windows is incorrect. The attached should
> fix it.
>
> Thanks,
>
--
Teodor Sigaev E-mail: teodor@sigaev.ru
WWW: http://www.sigaev.ru/
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pgsql: Skip temp tables from basebackup.
2018-03-27 13:14 pgsql: Skip temp tables from basebackup. Teodor Sigaev <teodor@sigaev.ru>
2018-03-27 14:17 ` Re: pgsql: Skip temp tables from basebackup. Teodor Sigaev <teodor@sigaev.ru>
@ 2018-03-27 14:25 ` David Steele <david@pgmasters.net>
2018-03-27 14:30 ` Re: pgsql: Skip temp tables from basebackup. Tom Lane <tgl@sss.pgh.pa.us>
2 siblings, 1 reply; 8+ messages in thread
From: David Steele @ 2018-03-27 14:25 UTC (permalink / raw)
To: Teodor Sigaev <teodor@sigaev.ru>; pgsql-committers@lists.postgresql.org
On 3/27/18 10:17 AM, Teodor Sigaev wrote:
> Hm, seems, Windows doesn't like this patch
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=bowerbird&dt=2018-03-27
Will do. Probably a path problem, which hopefully I can fix with the new
function Andrew wrote.
--
-David
david@pgmasters.net
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pgsql: Skip temp tables from basebackup.
2018-03-27 13:14 pgsql: Skip temp tables from basebackup. Teodor Sigaev <teodor@sigaev.ru>
2018-03-27 14:17 ` Re: pgsql: Skip temp tables from basebackup. Teodor Sigaev <teodor@sigaev.ru>
2018-03-27 14:25 ` Re: pgsql: Skip temp tables from basebackup. David Steele <david@pgmasters.net>
@ 2018-03-27 14:30 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 8+ messages in thread
From: Tom Lane @ 2018-03-27 14:30 UTC (permalink / raw)
To: David Steele <david@pgmasters.net>; +Cc: Teodor Sigaev <teodor@sigaev.ru>; pgsql-committers@lists.postgresql.org
David Steele <david@pgmasters.net> writes:
> Will do. Probably a path problem, which hopefully I can fix with the new
> function Andrew wrote.
Looks to me more like a failure-to-count-the-number-of-tests
problem. There's no test reported as "not ok".
regards, tom lane
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: pgsql: Skip temp tables from basebackup.
2018-03-27 13:14 pgsql: Skip temp tables from basebackup. Teodor Sigaev <teodor@sigaev.ru>
2018-03-27 14:17 ` Re: pgsql: Skip temp tables from basebackup. Teodor Sigaev <teodor@sigaev.ru>
@ 2018-03-27 14:34 ` Andrew Gierth <andrew@tao11.riddles.org.uk>
2 siblings, 0 replies; 8+ messages in thread
From: Andrew Gierth @ 2018-03-27 14:34 UTC (permalink / raw)
To: Teodor Sigaev <teodor@sigaev.ru>; +Cc: pgsql-committers@lists.postgresql.org, David Steele <david@pgmasters.net>
>>>>> "Teodor" == Teodor Sigaev <teodor@sigaev.ru> writes:
Teodor> Hm, seems, Windows doesn't like this patch
You added two tests to the SKIP: block without updating the number of
tests that would be skipped, so the final count of tests comes out
wrong.
skip "symlinks not supported on Windows", 15 if ($windows_os);
above 15 should presumably be 17 (did not test this myself since I don't
have windows)
--
Andrew (irc:RhodiumToad)
^ permalink raw reply [nested|flat] 8+ messages in thread
end of thread, other threads:[~2018-03-27 14:43 UTC | newest]
Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-03-27 13:14 pgsql: Skip temp tables from basebackup. Teodor Sigaev <teodor@sigaev.ru>
2018-03-27 14:17 ` Teodor Sigaev <teodor@sigaev.ru>
2018-03-27 14:24 ` Teodor Sigaev <teodor@sigaev.ru>
2018-03-27 14:34 ` David Steele <david@pgmasters.net>
2018-03-27 14:43 ` Teodor Sigaev <teodor@sigaev.ru>
2018-03-27 14:25 ` David Steele <david@pgmasters.net>
2018-03-27 14:30 ` Tom Lane <tgl@sss.pgh.pa.us>
2018-03-27 14:34 ` Andrew Gierth <andrew@tao11.riddles.org.uk>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox