Re: ALTER TABLE SET (toast.asdf) is not rejected ... if a table has no toast

2018-06-15 Thread Justin Pryzby
On Mon, Jun 11, 2018 at 11:47:59AM -0400, Alvaro Herrera wrote: > On 2018-Jun-11, Justin Pryzby wrote: > > > I noticed that this is accepted: > > > > postgres=# ALTER TABLE t SET (toast.asdf=128); > > ALTER TABLE > > > > I thought since "toast" was a core namespace, it would've been rejected? >

Re: Trying to understand odd trigger behavior

2018-06-15 Thread Bruno Wolff III
On Fri, Jun 15, 2018 at 08:54:52 +0200, Laurenz Albe wrote: Bruno Wolff III wrote: I think I know what is happening, but I wanted to see if my understanding is correct. I have a perl after insert trigger for a table with a non-null column element and I am getting an occasional error when the

Re: Partitioning with range types

2018-06-15 Thread Adrian Klaver
On 06/15/2018 09:59 AM, Jeremy Finzel wrote: On Fri, Jun 15, 2018 at 11:23 AM, Adrian Klaver mailto:adrian.kla...@aklaver.com>> wrote: On 06/15/2018 08:26 AM, Jeremy Finzel wrote: Several months ago we had some detailed discussions about whether to use separate date

Re: Clarifying "timestamp with time zone"

2018-06-15 Thread Adrian Klaver
On 06/15/2018 12:24 PM, Jeremy Finzel wrote: Hello! We often prefer to use timestamptz or "timestamp with time zone" in our environment because of its actually storing "objective time" with respect to UTC.  But in my own work experience, I have scarcely encountered a case where business

Re: Clarifying "timestamp with time zone"

2018-06-15 Thread Tom Lane
Jeremy Finzel writes: > We often prefer to use timestamptz or "timestamp with time zone" in our > environment because of its actually storing "objective time" with respect > to UTC. But in my own work experience, I have scarcely encountered a case > where business users, and software engineers,

Re: Clarifying "timestamp with time zone"

2018-06-15 Thread David G. Johnston
On Fri, Jun 15, 2018 at 12:24 PM, Jeremy Finzel wrote: > So it seems to me that "timestamp with time zone" is a misnomer in a big > way, and perhaps it's worth at least clarifying the docs about this, or > even renaming the type or providing an aliased type that means the same > thing, something

Re: Partitioning with range types

2018-06-15 Thread Jeremy Finzel
On Fri, Jun 15, 2018 at 11:23 AM, Adrian Klaver wrote: > On 06/15/2018 08:26 AM, Jeremy Finzel wrote: > >> Several months ago we had some detailed discussions about whether to use >> separate date columns to indicate a date range, or to use the daterange >> data type. We opted for the latter

Re: PostgreSQL Volume Question

2018-06-15 Thread Melvin Davidson
On Fri, Jun 15, 2018 at 12:26 PM, Data Ace wrote: > Well I think my question is somewhat away from my intention cause of my > poor understanding and questioning :( > > > > Actually, I have 1TB data and have hardware spec enough to handle this > amount of data, but the problem is that it needs

Re: PostgreSQL Volume Question

2018-06-15 Thread Data Ace
Well I think my question is somewhat away from my intention cause of my poor understanding and questioning :( Actually, I have 1TB data and have hardware spec enough to handle this amount of data, but the problem is that it needs too many join operations and the analysis process is going too

Re: Partitioning with range types

2018-06-15 Thread Adrian Klaver
On 06/15/2018 08:26 AM, Jeremy Finzel wrote: Several months ago we had some detailed discussions about whether to use separate date columns to indicate a date range, or to use the daterange data type.  We opted for the latter because this type is specifically designed for this use case - a

Re: Append only replication over intermittent links (with local only delete?)

2018-06-15 Thread Andreas Kretschmer
Am 14.06.2018 um 14:04 schrieb Uri Braun: Hi, I'm looking to run Postgres -- flexible on exact version -- on some devices installed in cars and replicated to a central server over cell phone modems. I expect dropped connections due to: lack of coverage (remote areas), dead spots, tunnels,

Partitioning with range types

2018-06-15 Thread Jeremy Finzel
Several months ago we had some detailed discussions about whether to use separate date columns to indicate a date range, or to use the daterange data type. We opted for the latter because this type is specifically designed for this use case - a table that has a range of valid dates for the data

Re: question on streaming replication

2018-06-15 Thread Amit Kapila
On Thu, Jun 14, 2018 at 10:58 AM, Atul Kumar wrote: > Hi, > > I have postgres edb 9.6 version, i have below query to solve it out. > This is not the right place to ask queries on edb versions. You need to check with your vendor about the right place to ask questions. Here, you can ask the

Re: Append only replication over intermittent links (with local only delete?)

2018-06-15 Thread Vick Khera
On Thu, Jun 14, 2018 at 8:04 AM, Uri Braun wrote: > To be clear, the car device will surely add data -- append rows -- and may > very occasionally add a new table. I would expect the only case where a > delete may occur -- other than culling old data -- is during recovery of a > partial write or

Re: PostgreSQL Volume Question

2018-06-15 Thread Steven Lembark
On Thu, 14 Jun 2018 14:33:54 -0700 Data Ace wrote: > Hi, I'm new to the community. > > Recently, I've been involved in a project that develops a social > network data analysis service (and my client's DBMS is based on > PostgreSQL). I need to gather huge volume of unstructured raw data > for

Re: About "Cost-based Vacuum Delay"

2018-06-15 Thread Laurenz Albe
Ilyeop Yi wrote: > I have some questions about "cost-based vacuum delay". > > Q1. How can I know/check if the autovacuum is actually paused periodically > according to autovacuum_vacuum_cost_limit and autovacuum_vacuum_cost_delay? > > I cannot find such an information from log files. These

Re: About "Cost-based Vacuum Delay"

2018-06-15 Thread Lawrence Jones
Hey Ilyeop, > Q1. How can I know/check if the autovacuum is actually paused periodically > according to autovacuum_vacuum_cost_limit and autovacuum_vacuum_cost_delay? Vacuums that are triggered by the auto-vacuum process will be governed by the autovacuum cost configuration variables. You won’t

Re: Trying to understand odd trigger behavior

2018-06-15 Thread Bruno Wolff III
On Fri, Jun 15, 2018 at 08:54:52 +0200, Laurenz Albe wrote: Absolutely, but it should be easy to run a few tests with only a single row insert that confirms your theory. Thanks.

About "Cost-based Vacuum Delay"

2018-06-15 Thread Ilyeop Yi
Hi Guys, I have some questions about "cost-based vacuum delay". Q1. How can I know/check if the autovacuum is actually paused periodically according to autovacuum_vacuum_cost_limit and autovacuum_vacuum_cost_delay? I cannot find such an information from log files. Q2. Is there any way to

Re: Trying to understand odd trigger behavior

2018-06-15 Thread Laurenz Albe
Bruno Wolff III wrote: > I think I know what is happening, but I wanted to see if my understanding > is correct. > > I have a perl after insert trigger for a table with a non-null column element > and I am getting an occasional error when the trigger executes for > printing a null value which