[GENERAL] replanning Prepared Statements ?

2013-05-13 Thread Sahagian, David
I see in the Release Notes for 9.3 beta . . . Force cached functions to be replanned if the search_path changes (Tom Lane) Previously functions already run in the current session ignored search_path changes. Question: Do Prepared Statements also get replanned, if the search_path changes ?

[GENERAL] help with log entries during restart

2013-05-07 Thread Sahagian, David
log_line_prefix = '%m %a %u %c %v %x ' # %m Time stamp with milliseconds # %a Application name # %u User name # %c emits a quasi-unique Session ID, # consisting of two 4-byte hexadecimal numbers (without leading zeros) separated by a dot. # The numbers are the Process

[GENERAL] ERROR: not enough stack items

2013-04-22 Thread Sahagian, David
PostgreSQL 9.1.8 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52), 64-bit I see in the postgres log, on a DEV box . . . 2013-04-18 17:09:44.721 EDT 516f10af.34fb 2/160904 0 ERROR: not enough stack items 2013-04-18 17:09:44.721 EDT 516f10af.34fb 2/160904 0

[GENERAL] FATAL logged when starting

2013-02-21 Thread Sahagian, David
We get this FATAL pg_log entry, just after Postgres startup. (Postgres does start OK) //9.1.3 on Linux 2013-02-20 10:15:46.637 EST 50eedb22.3602 0 LOG: database system is ready to accept connections 2013-02-20 10:15:46.637 EST 50eedb22.3607 0 LOG: autovacuum launcher started

[GENERAL] trying to use CLUSTER

2013-02-12 Thread Sahagian, David
Version=9.1.7 INFO: clustering my_cool_table using sequential scan and sort INFO: my_cool_table: found 1 removable, 1699139 nonremovable row versions in 49762 pages Detail: 1689396 dead row versions cannot be removed yet. CPU 9.80s/4.98u sec elapsed 175.92 sec. INFO: clustering my_cool_table

[GENERAL] ATET, could it be made more concurrent ?

2013-02-01 Thread Sahagian, David
PostgreSQL 9.1.x I try to enable my trigger ALTER TABLE cool_tbl ENABLE TRIGGER trg_for_cool_tbl; I notice that it gets blocked by another backend doing select xxx from cool_tbl; (of course, my pain is if this transaction lasts for minutes, instead of seconds) I understand that

[GENERAL] lock and socket file

2013-01-14 Thread Sahagian, David
Using Postgres 9.1 (1) Simulate a power failure by hitting Restart on my VMware Workstation. (2) Turn on the VM (without any script removing lock or socket file). (3) Try to start postgres. $ pgsql/bin/pg_ctl start -D pgdata server starting 2013-01-14 FATAL: lock file /tmp/.s.PGSQL.5432.lock

[GENERAL] changes during checkpointing

2013-01-11 Thread Sahagian, David
In regards to 9.1.x, I would like to learn some details of the nature of checkpointing === Question 1 === - page 123 is dirty - checkpointing starts - page 123 gets written to disk, as part of this checkpoint - page 123 gets modified again ? Does it get written to disk again, as part of

[GENERAL] cannot load server.crt

2012-12-19 Thread Sahagian, David
9.1.3 on Linux . . . We use our own CA implementation inside Java to generate a PEM-encoded certificate chain (server.crt) and key (server.key). The certificates are, as they should be, base-64 encoded and surrounded by the appropriate delimiters such as -BEGIN CERTIFICATE- -END

[GENERAL] cannot load server.crt

2012-12-19 Thread Sahagian, David
Continuation . . . When this happens, Postgres rejects the certificate. FATAL: could not load server certificate file server.crt: no SSL error reported -dvs-

[GENERAL] Expensive log_line_prefix ?

2012-10-11 Thread Sahagian, David
In 9.1.x Are there any extra costs to logging all this cool stuff ? log_line_prefix = '%m %a %u %p %c %m %v %x' Are any of these expensive ? Or is the only cost the number of bytes that the textual representation of their values take in the written log file ? Thanks, -dvs-

[GENERAL] values from txid_current()

2012-09-05 Thread Sahagian, David
Using 9.1.3 Start Transaction; DO $$ BEGIN raise info '%', txid_current(); END $$; ALTER TABLE MyCoolTable_1 DISABLE TRIGGER trg_foo_1 ; Commit; Start Transaction; ALTER TABLE MyCoolTable_2 DISABLE TRIGGER trg_foo_2 ; Commit; Start

Re: [GENERAL] values from txid_current()

2012-09-05 Thread Sahagian, David
05, 2012 1:46 PM To: Sahagian, David Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] values from txid_current() On Wed, Sep 5, 2012 at 10:53 PM, Sahagian, David david.sahag...@emc.commailto:david.sahag...@emc.com wrote: Why are the Messages displayed by my pgAdmin sql window like

[GENERAL] order of checking the unique constraints

2012-08-28 Thread Sahagian, David
Using 9.1 Can somebody tell me the order in which the Unique Constraints of a table are checked, like when an INSERT is done ? It seems the the Primary is checked first, but what about the regular UCs ? Thanks, -dvs-

[GENERAL] create table like . . . constraint names

2012-08-24 Thread Sahagian, David
Is there any way for me to control the name of the (unique or primary) constraints that get created when doing a create table like parent-table statement ? I use this statement to create the new table in a different schema than the one in which the parent-table lives, and I would like the