Re: Can postgresql ignore DST ?

2017-12-13 Thread Venkata B Nagothi
. Do Regards, Ven On Thu, 14 Dec 2017 at 4:04 pm, Tom Lane wrote: > Venkata B Nagothi writes: > > To rule out any application issues, is it possible to get postgresql to > > ignore DST and render all the timestamps with timezone offsets of +11 ? > > set timezone = 11 Thanks a lot Tom. We h

Re: Can postgresql ignore DST ?

2017-12-13 Thread Tom Lane
Venkata B Nagothi writes: > To rule out any application issues, is it possible to get postgresql to > ignore DST and render all the timestamps with timezone offsets of +11 ? set timezone = 11 regards, tom lane

Re: Can postgresql ignore DST ?

2017-12-13 Thread amul sul
How about storing timestamp without timezone[1]? 1] https://www.postgresql.org/docs/current/static/datatype-datetime.html Regards, Amul On Thu, Dec 14, 2017 at 10:19 AM, Venkata B Nagothi wrote: > Hi All, > > I have a question regarding PostgreSQL time zones and daylight savings - > > We have b

Can postgresql ignore DST ?

2017-12-13 Thread Venkata B Nagothi
Hi All, I have a question regarding PostgreSQL time zones and daylight savings - We have been migrating Oracle databases to PostgreSQL and the database we are migrating from does not seem to follow daylight savings and it is good that postgresql does. When i query the date columns i get the time

Re: pgstattuple free_percent to high

2017-12-13 Thread Rene Romero Benavides
Check for long running transactions modifying (update, insert) on those tables ,using pg_stat_activity. Tweak these storage parameters for such tables: autovacuum_vacuum_cost_delay : decrease it (the autovacuum daemon goes to sleep less often ) autovacuum_vacuum_threshold : decrease it (to trigger

Re: PgBackRest question?

2017-12-13 Thread Stephen Frost
Greetings, * chiru r (chir...@gmail.com) wrote: > The pgbackrest.conf configuration file has the option *repo-path* to mention > the mount point to store the backups and wal archive files. That's correct, that's where the backups and the WAL are stored. > We are looking for an option, Can we st

PgBackRest question?

2017-12-13 Thread chiru r
Hi All, I am trying to understand the PgBackRest functionality for WAL files. The pgbackrest.conf configuration file has the option *repo-path* to mention the mount point to store the backups and wal archive files. We are looking for an option, Can we store online backups and wal archive files

Re: If table have an inclusion with LIKE what happens to triggers?

2017-12-13 Thread David G. Johnston
On Wed, Dec 13, 2017 at 11:21 AM, Göran Hasse wrote: > Is there any way to inherit also > the triggers from the common_field table? > ​No ​ > Or must I place triggers on all tables? > ​Yes​ ​ ​The docs cover what is able to be copied and triggers are not mentioned. ​​https://www.postgresql.

Re: PostgreSQL Client on SUSE Enterprise Linux Server 11.

2017-12-13 Thread John R Pierce
On 12/13/2017 9:58 AM, PAWAN SHARMA wrote: How to Install PostgreSQL Client on SUSE Enterprise Linux Server 11. yum install postgresql ^ I believe that should do it,  at least thats what you do on RHEL/CentOS...   postgresql-server is the server package, plain postgresql is the client packag

Re: Dependency tree to tie type/function deps to a table

2017-12-13 Thread Alvaro Herrera
Jeremy Finzel wrote: > I appreciate that, Melvin. However, this doesn't do the recursive part. > It doesn't show me type or function dependencies, for example: You need a WITH RECURSIVE query ... If you do figure it out, please publish it as in this section of the wiki https://wiki.postgresql.o

Re: Dependency tree to tie type/function deps to a table

2017-12-13 Thread Jeremy Finzel
On Wed, Dec 13, 2017 at 9:54 AM, Melvin Davidson wrote: > > > On Wed, Dec 13, 2017 at 10:20 AM, Tom Lane wrote: > >> Jeremy Finzel writes: >> > It looks like the very useful dependency tree shown when using DROP >> CASCADE >> > is written in C in dependency.c, but there is no way to leverage th

If table have an inclusion with LIKE what happens to triggers?

2017-12-13 Thread Göran Hasse
Hello, If I have a small table with common fields CREATE TABLE common_filelds ( created_timestamp timestamp, updated_timestamp timestamp ) Then I put som triggers on those fields CREATE OR REPLACE FUNCTION update_modified_timestamp_function() RETURNS trigger AS $$ BEGIN NEW.modified_tim

PostgreSQL Client on SUSE Enterprise Linux Server 11.

2017-12-13 Thread PAWAN SHARMA
Hi All, How to Install PostgreSQL Client on SUSE Enterprise Linux Server 11. -Pawan

Re: Varbit and toast

2017-12-13 Thread Pavel Stehule
Hi 2017-12-13 16:22 GMT+01:00 Olga Lytvynova-Bogdanova < olytvynovabogdan...@gmail.com>: > Hello, > I would like to ask whether is VARBIT a TOAST-able type and table should > support row insertion with VARBIT values more than 8 KB in size thus? > Regards > Olha > postgres=# select * from pg_type

Re: Size of pg_multixact/members increases 11355

2017-12-13 Thread Yogesh Sharma
Dear Thomas, Thanks for your updation. I have also checked on older version 8.1.3. In older version , after 32 MB folder size increased, it automatically cleaned files and size is reduced. This size is dependent on which paramter in older version? Regards, Yogesh On Wednesday, December 13, 201

Varbit and toast

2017-12-13 Thread Olga Lytvynova-Bogdanova
Hello, I would like to ask whether is VARBIT a TOAST-able type and table should support row insertion with VARBIT values more than 8 KB in size thus? Regards Olha

Re: Dependency tree to tie type/function deps to a table

2017-12-13 Thread Melvin Davidson
On Wed, Dec 13, 2017 at 10:20 AM, Tom Lane wrote: > Jeremy Finzel writes: > > It looks like the very useful dependency tree shown when using DROP > CASCADE > > is written in C in dependency.c, but there is no way to leverage this > > within Postgres to actually query an object's dependencies. C

pgstattuple free_percent to high

2017-12-13 Thread Nicola Contu
Hello, We are running postgres 9.6.6 on centos 7. We have a large DB (180GB) with about 1200 tables. We have autovacuum set with default values and we are seeing that for some tables the free percent goes really high (51%) and we need to daily full vacuum those tables. dbanme=# SELECT * FROM pgs

Re: Dependency tree to tie type/function deps to a table

2017-12-13 Thread Tom Lane
Jeremy Finzel writes: > It looks like the very useful dependency tree shown when using DROP CASCADE > is written in C in dependency.c, but there is no way to leverage this > within Postgres to actually query an object's dependencies. Can we get > this somehow as a Postgres client in SQL? Seems l

Re: Size of pg_multixact/members increases 11355

2017-12-13 Thread Tomas Vondra
On 12/13/2017 01:42 PM, Yogesh Sharma wrote: > Dear Thomas , > > Thanks for sharing information. > > Is it possible to remove mentioned folder files in some time intervals > by some DB command? > Currently i can not upgrade to 3.6.20. > So please share if any solution is available. > There ar

Dependency tree to tie type/function deps to a table

2017-12-13 Thread Jeremy Finzel
It looks like the very useful dependency tree shown when using DROP CASCADE is written in C in dependency.c, but there is no way to leverage this within Postgres to actually query an object's dependencies. Can we get this somehow as a Postgres client in SQL? One of the problems we face over and o

Re: Size of pg_multixact/members increases 11355

2017-12-13 Thread Yogesh Sharma
Dear Thomas , Thanks for sharing information. Is it possible to remove mentioned folder files in some time intervals by some DB command? Currently i can not upgrade to 3.6.20. So please share if any solution is available. Regards, Yogesh On Wednesday, December 13, 2017, Yogesh Sharma wrote: >