On Sat, Nov 12, 2016 at 3:42 AM, Andreas Karlsson wrote:
> On 11/11/2016 07:40 PM, Andreas Karlsson wrote:
>> Here is a new version of the patch with the only differences;
>>
>> 1) The SSL tests have been changed to use reload rather than restart
Did you check if the tests
>
>> Sorry. I think the current version is better than previous one. The
>> term "subselect alias" is confusing in the previous version. In the
>> current version, "Get the relation and column alias for a given Var
>> node," we need to add word "identifiers" like "Get the relation and
>> column
On 2016/11/23 0:30, Ashutosh Bapat wrote:
You wrote:
The comment below says "get the aliases", but what the function really
returns
is the identifiers used for creating aliases. Please correct the comment.
+/*
+ * Get the relation and column alias for a given Var node, which belongs
to
+ *
On Wed, Nov 23, 2016 at 11:32 PM, Tsunakawa, Takayuki
wrote:
> IMHO, overall, there should be pros and cons of the current approach and the
> new UNDo one (like Oracle?), depending on the workload. Under update-heavy
> workload, the UNDO method may be better.
IMHO, overall, there should be pros and cons of the current approach and the
new UNDo one (like Oracle?), depending on the workload. Under update-heavy
workload, the UNDO method may be better. OTOH, under the mostly-INSERT
workload (like data warehouse?), the current method will be better
On Thu, Nov 24, 2016 at 10:29 AM, Tsunakawa, Takayuki
wrote:
> From: pgsql-hackers-ow...@postgresql.org
>> [mailto:pgsql-hackers-ow...@postgresql.org] On Behalf Of Amit Kapila
>> Thanks for the clarification, I could reproduce the issue and confirms that
>> patch
On Thu, Nov 24, 2016 at 12:02 PM, Amit Langote
wrote:
> On 2016/11/24 15:10, Ashutosh Bapat wrote:
>> On Thu, Nov 24, 2016 at 11:34 AM, Amit Langote wrote:
>>> On 2016/11/24 14:35, Ashutosh Bapat wrote:
IIUC, it should allow "create table t1_p1 partition of t1
On 2016/11/24 15:10, Ashutosh Bapat wrote:
> On Thu, Nov 24, 2016 at 11:34 AM, Amit Langote wrote:
>> On 2016/11/24 14:35, Ashutosh Bapat wrote:
>>> IIUC, it should allow "create table t1_p1 partition of t1 (a primary
>>> key) ...", (a primary key) is nothing but "column_name
>>>
On Thu, Nov 24, 2016 at 11:34 AM, Amit Langote
wrote:
>
> Hi Ashutosh,
>
> On 2016/11/24 14:35, Ashutosh Bapat wrote:
>> I am trying to create a partitioned table with primary keys on the
>> partitions. Here's the corresponding syntax as per documentation
>> CREATE
Hi Ashutosh,
On 2016/11/24 14:35, Ashutosh Bapat wrote:
> I am trying to create a partitioned table with primary keys on the
> partitions. Here's the corresponding syntax as per documentation
> CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [
> IF NOT EXISTS ] table_name
>
From: pgsql-hackers-ow...@postgresql.org
> [mailto:pgsql-hackers-ow...@postgresql.org] On Behalf Of Tom Lane
> Maybe a workable compromise would be to leave the file present, and have
> the stats collector re-write it every (say) five minutes. Then I'd be okay
> with having an immediate shutdown
From: pgsql-hackers-ow...@postgresql.org
> [mailto:pgsql-hackers-ow...@postgresql.org] On Behalf Of Tom Lane
> Robert Haas writes:
> > I agree. However, in many cases, the major cost of a fast shutdown is
> > getting the dirty data already in the operating system buffers
Unsurprisingly ALTER TABLE worked
alter table t1_p1 add primary key(a);
ALTER TABLE
postgres=# \d+ t1_p1
Table "public.t1_p1"
Column | Type | Collation | Nullable | Default | Storage | Stats
target | Description
I am trying to create a partitioned table with primary keys on the
partitions. Here's the corresponding syntax as per documentation
CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [
IF NOT EXISTS ] table_name
PARTITION OF parent_table [ (
{ column_name WITH OPTIONS [
2016-11-24 5:52 GMT+01:00 Pavel Stehule :
> Hi
>
> 2016-11-24 0:13 GMT+01:00 Alvaro Herrera :
>
>> Oh my, I just noticed we have a new xpath preprocessor in this patch
>> too. Where did this code come from -- did you write it all from
>>
On Wed, 23 Nov 2016 03:21:05 -0600
"Karl O. Pinc" wrote:
> On Sat, 19 Nov 2016 12:58:47 +0100
> Gilles Darold wrote:
>
> > ... attached v14 of the patch.
> patch_pg_current_logfile-v14.diff.retry_current_logfiles-part3
> Re-try the write of
2016-11-24 0:29 GMT+01:00 Alvaro Herrera :
> Here's another version. Not there yet: need to move back the function
> to create the tupdesc, as discussed. Not clear what's the best place,
> however. I modified the grammar a bit (added the missing comma, removed
> PATH
From: pgsql-hackers-ow...@postgresql.org
> [mailto:pgsql-hackers-ow...@postgresql.org] On Behalf Of Amit Kapila
> Thanks for the clarification, I could reproduce the issue and confirms that
> patch has fixed it. Find logs of cascading standby at PG9.2 Head and Patch
> attached (I have truncated
Hi
2016-11-24 0:13 GMT+01:00 Alvaro Herrera :
> Oh my, I just noticed we have a new xpath preprocessor in this patch
> too. Where did this code come from -- did you write it all from
> scratch?
>
I wrote it from scratch - libxml2 has not any API for iteration over
Thanks Tom.
On Thu, Nov 24, 2016 at 2:58 AM, Tom Lane wrote:
> Ashutosh Bapat writes:
>> On Sat, Nov 5, 2016 at 2:16 AM, Tom Lane wrote:
>>> Ashutosh Bapat writes:
Also, the way this
On Tue, Nov 22, 2016 at 8:48 AM, Tsunakawa, Takayuki
wrote:
> From: pgsql-hackers-ow...@postgresql.org
>
> If the problem occurs, the following pair of lines appear in the server log
> of the cascading standby. Could you check it?
>
> LOG: restored log file
Hi All,
I would like to take over pg_background patch and repost for
discussion and review.
Initially Robert Haas has share this for parallelism demonstration[1]
and abandoned later with
summary of open issue[2] with this pg_background patch need to be
fixed, most of them seems to be
addressed
Alvaro Herrera wrote:
> If you use "PATH '/'" for a column, you get the text for all the entries
> in the whole XML, rather than the text for the particular row being
> processed. Isn't that rather weird, or to put it differently, completely
> wrong? I didn't find a way to obtain the whole XML
On Mon, Nov 14, 2016 at 08:43:12PM +, Greg Stark wrote:
> That said, I don't think the "maintain clustering a bit better using
> BRIN" is a bad idea. It's just the bit about turning a table
> append-only to deal with update-once data that I think is overreach.
What if we used BRIN to find
On 24 November 2016 at 02:32, Andres Freund wrote:
> Hi,
>
> On 2016-11-23 20:58:22 +0800, Craig Ringer wrote:
>> Today I ran into an issue where commit timestamp lookups were failing with
>>
>> ERROR: cannot retrieve commit timestamp for transaction 2
>>
>> which is
On 11/23/2016 06:31 PM, Alvaro Herrera wrote:
Sorry, here's the patch. Power loss distracted me here.
By the way, the pgindent you did is slightly confused because you failed
to add the new struct types you define to typedefs.list.
Tips on how to use pgindent for developers:
Here's another version. Not there yet: need to move back the function
to create the tupdesc, as discussed. Not clear what's the best place,
however. I modified the grammar a bit (added the missing comma, removed
PATH as an unreserved keyword and just used IDENT, removed the "Opt"
version for
Oh my, I just noticed we have a new xpath preprocessor in this patch
too. Where did this code come from -- did you write it all from
scratch?
--
Álvaro Herrerahttps://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via
On Fri, Nov 18, 2016 at 12:17 PM, Peter Geoghegan wrote:
> So, the Btree you show is supposed to be good? You've left it up to me
> to draw T2, the corrupt version? If so, here is a drawing of T2 for
> the sake of clarity:
>
> Btree =[a|b]
>
On Wed, Nov 23, 2016 at 6:01 PM, Peter Geoghegan wrote:
> * Our behavior with many duplicates in secondary indexes is pretty bad
> in general, I suspect.
>From the pie-in-the-sky department: I believe there are
snapshot-based systems that don't ever have more than one entry for
Alvaro Herrera writes:
> Peter Eisentraut wrote:
>> Here is a patch series that implements several changes in the internal
>> grammar and node representation of function signatures. They are not
>> necessarily meant to be applied separately, but they explain the
>>
Ashutosh Bapat writes:
> On Sat, Nov 5, 2016 at 2:16 AM, Tom Lane wrote:
>> Ashutosh Bapat writes:
>>> Also, the way this code has been written, the declaration of variable
>>> sjinfo masks the earlier
On Wed, Oct 12, 2016 at 4:19 PM, Thomas Munro
wrote:
> Here it is, now split into two parts: one patch
> to add an amskip operation, and another to consider using it to
> implement DISTINCT when it was already has an index only scan path on
> an index that supports
On 23.11.16 20:43, Maeldron T. wrote:
pg_test_timing doesn’t show the problem, or I read the output wrong.
Or it does. I checked another output than the one I attached at the end.
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
In short:
The available timecounters on Google Compute Instances seem to be random.
The setting in the official FreeBSD image is wrong (not available on any
of my test instances). FreeBSD will pick up a timecounter at random.
When either the TSC or the TSC-low counter is used, explain
Hi,
On 2016-11-23 20:58:22 +0800, Craig Ringer wrote:
> Today I ran into an issue where commit timestamp lookups were failing with
>
> ERROR: cannot retrieve commit timestamp for transaction 2
>
> which is of course FrozenTransactionId.
>
> TransactionIdGetCommitTsData(...) ERRORs on
On Mon, Nov 21, 2016 at 6:32 AM, Vladimir Svedov wrote:
> Hi,
> I have this question. Looked for a help on http://dba.stackexchange.com/
> No success.
> Maybe you can answer?..
> Thank you in advance
>
>
> "FOREIGN_TABLE" created with postgres_fdw. LOCAL_TABLE is just a local
On Wed, 23 Nov 2016 10:39:28 -0500
Tom Lane wrote:
> Robert Haas writes:
> > On Wed, Nov 23, 2016 at 4:21 AM, Karl O. Pinc
> > wrote:
> >> The bool types on the stack in logfile_rotate() are
> >> my work. Bools on the stack don't
Alvaro Herrera wrote:
> I'm still wondering how this works. I'll continue to explore the patch
> in order to figure out.
Ah, so it's already parsed as a "range function". That part looks good
to me.
--
Álvaro Herrerahttps://www.2ndQuadrant.com/
PostgreSQL Development, 24x7
On Wed, Nov 23, 2016 at 3:08 AM, Vladimir Svedov wrote:
> No, I select from it OK.
> The bug(?) is that when I do it in oppened psql session it produces no log,
> and when I run same select as psql -c "SELECT..." it gives the above
OK, that's pretty weird.
--
Robert Haas
I tried to see if a following RTE was able to "see" the entries created by
XMLTABLE, and sure it can:
SELECT X.*, generate_series
FROM emp,
XMLTABLE ('//depts/dept/employee' passing doc
COLUMNS
empIDINTEGER PATH '@id',
firstnamevarchar(25) PATH 'name/first',
On Tue, Nov 22, 2016 at 8:38 AM, Tsunakawa, Takayuki
wrote:
> transaction_read_only=on does not mean the standby. As the manual article on
> hot standby says, they are different.
> I'm afraid that if the current patch is committed, you will lose interest in
>
Kostiantyn Nemchenko writes:
> I've found a typo in a comment in function do_analyze_rel() in
> file analyze.c [line 348, master branch].
No, "iff" is intentional there. It means "if and only if".
regards, tom lane
--
Sent via
Le 23/11/2016 à 16:26, Tom Lane a écrit :
> "Karl O. Pinc" writes:
>> Maybe on the 2nd call to strtok() you could pass ""
>> as the 2nd argument? That'd be a little wonky but
>> the man page does not say you can't have an empty
>> set of delimiters. On the other hand strtok() is
I've found a typo in a comment in function do_analyze_rel() in
file analyze.c [line 348, master branch].
Attached a patch.
minor_typo_analyze_c.patch
Description: Binary data
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
Tomas Vondra writes:
> This would also reduce the amount of data that we need to write to WAL,
> although I'm not sure the amount is actually a problem. I've seen
> instances with ~500MB stat files, but those were instances with hundreds
> of databases, each with
Robert Haas writes:
> On Wed, Nov 23, 2016 at 4:21 AM, Karl O. Pinc wrote:
>> The bool types on the stack in logfile_rotate() are
>> my work. Bools on the stack don't make sense as far
>> as hardware goes, so the compiler's optimizer should change
>> them
On Wed, Nov 23, 2016 at 4:21 AM, Karl O. Pinc wrote:
> patch_pg_current_logfile-v14.diff.bool_to_int
>
> Do not include in "main" patch, submit to maintainers separately.
>
> Applies on top of patch_pg_current_logfile-v14.diff
>
> The bool types on the stack in logfile_rotate() are
"Karl O. Pinc" writes:
> Maybe on the 2nd call to strtok() you could pass ""
> as the 2nd argument? That'd be a little wonky but
> the man page does not say you can't have an empty
> set of delimiters. On the other hand strtok() is
> not a perfect choice, you don't want to
On 11/23/2016 12:24 PM, Michael Paquier wrote:
On Wed, Nov 23, 2016 at 6:15 PM, Magnus Hagander wrote:
There's also the consideration of what to do with stats *on the standby*. If
we WAL log the stats file, then when it replays onthe standby, the stats
there will be
On Tue, Nov 22, 2016 at 11:18 PM, Tom Lane wrote:
> Peter Geoghegan writes:
>> On Tue, Nov 22, 2016 at 7:31 PM, Tom Lane wrote:
>>> Oracle spends a lot of time on this, and it's really cache-inefficient
>>> because the data is spread all
On Wed, 23 Nov 2016 03:21:05 -0600
"Karl O. Pinc" wrote:
> But also, you can't use strtok() to parse lbuffer because
> the path you're returning can contain a space.
Maybe on the 2nd call to strtok() you could pass ""
as the 2nd argument? That'd be a little wonky but
the man
On 23 November 2016 at 03:55, Robert Haas wrote:
> On Tue, Nov 22, 2016 at 1:49 AM, Craig Ringer wrote:
>> On 22 November 2016 at 10:20, Craig Ringer wrote:
>>> I'm currently looking at making detection of replay conflict with
On 23 November 2016 at 20:58, Craig Ringer wrote:
> Hi all
>
> Today I ran into an issue where commit timestamp lookups were failing with
>
> ERROR: cannot retrieve commit timestamp for transaction 2
>
> which is of course FrozenTransactionId.
>
>
Hi all
Today I ran into an issue where commit timestamp lookups were failing with
ERROR: cannot retrieve commit timestamp for transaction 2
which is of course FrozenTransactionId.
TransactionIdGetCommitTsData(...) ERRORs on !TransactionIdIsNormal(),
which I think is wrong. Attached is
I wrote:
> So I went through the psql commands which don't fail on parse errors
> for booleans
> [...]
Here's a v5 patch implementing the suggestions mentioned upthread:
all meta-commands calling ParseVariableBool() now fail
when the boolean argument can't be parsed successfully.
Also
On Wed, Oct 5, 2016 at 10:32 AM, Thomas Munro
wrote:
> One obvious problem is that this patch results in at least *two* DSM
> segments being created for every parallel query execution: the main
> segment used for parallel execution, and then the initial segment
>
On Tue, Nov 22, 2016 at 6:24 PM, Etsuro Fujita
wrote:
> Hi Rushabh,
>
> On 2016/11/22 19:05, Rushabh Lathia wrote:
>
>> I started reviewing the patch and here are few initial review points and
>> questions for you.
>>
>
> Thanks for the review!
>
> 1)
>> -static void
On Wed, Nov 23, 2016 at 6:15 PM, Magnus Hagander wrote:
> There's also the consideration of what to do with stats *on the standby*. If
> we WAL log the stats file, then when it replays onthe standby, the stats
> there will be overwritten. And stats like number of index vs seq
Robert Haas wrote:
> To implement this in PostgreSQL, I believe we would need support for
> UNDO.
> - Reading a page that has been recently modified gets significantly
> more expensive; it is necessary to read the associated UNDO entries
> and do a bunch of calculation that is significantly more
Hi Gilles,
On Sat, 19 Nov 2016 12:58:47 +0100
Gilles Darold wrote:
> ... attached v14 of the patch.
Attached are patches for your consideration and review.
(Including your latest v14 patch for completeness.)
Some of the attached patches (like the GUC symbol
patch
On Tue, Nov 22, 2016 at 10:26 PM, Alvaro Herrera
wrote:
> Andres Freund wrote:
> > On 2016-11-22 16:15:58 -0500, Tom Lane wrote:
>
> > > Maybe a workable compromise would be to leave the file present, and
> have
> > > the stats collector re-write it every (say) five
On 2016-11-18 08:00:40 -0500, Robert Haas wrote:
> On Tue, Nov 15, 2016 at 2:28 PM, Andres Freund wrote:
> > I've a working fix for this, and for a similar issue Robert found. I'm
> > still playing around with it, but basically the fix is to make the
> > growth policy a bit
No, I select from it OK.
The bug(?) is that when I do it in oppened psql session it produces no log,
and when I run same select as psql -c "SELECT..." it gives the above
2016-11-22 20:18 GMT+00:00 Robert Haas :
> On Tue, Nov 22, 2016 at 5:05 AM, Vladimir Svedov
64 matches
Mail list logo