[GENERAL] errors on COMMIT and transaction states

2017-09-22 Thread Andrei Matei
; question when receiving an error after sending a multi-statement query string that contains a COMMIT in it? Thank you very much, - Andrei

[GENERAL] loading data into cluster - can I daisy-chain streaming replication?

2015-12-02 Thread Florin Andrei
ansfer all data from A into B. Can I daisy-chain streaming replication? In other words, temporarily setup replication like this: A ==> B ==> C And after the transfer is done, just remove A from the scheme. -- Florin Andrei http://florin.myip.org/ -- Sent via pgsql-general mailing lis

Re: [GENERAL] BDR: SSL error: bad write retry

2015-11-03 Thread Florin Andrei
Nevermind, this was fixed with: ssl_renegotiation_limit = 0 -- Florin Andrei http://florin.myip.org/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] BDR: SSL error: bad write retry

2015-11-03 Thread Florin Andrei
his in the logs: ### 2015-11-03 21:45:31.885 UTC,,,3391,,56391e57.d3f,19,,2015-11-03 20:51:35 UTC,,0,LOG,0,"checkpoint starting: xlog","" 2015-11-03 21:45:35.400 UTC,,,4773,,56392a26.12a5,1,,2015-11-03 21:41:58 UT

Re: [GENERAL] BDR: name conflict when joining a rebuilt node

2015-11-03 Thread Florin Andrei
amd64development files for PostgreSQL-BDR 9.4 server-side programming ii postgresql-client-common 169.pgdg14.04+1 all manager for multiple PostgreSQL client versions ii postgresql-common169.pgdg14.04+1 all PostgreSQL database-cluster manager -- Florin Andrei http://florin.myip.org/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] BDR: name conflict when joining a rebuilt node

2015-10-29 Thread Florin Andrei
er rebuilding it from scratch, under the old name? Do I have to change the name every time I re-join a node? -- Florin Andrei http://florin.myip.org/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] bdr-plugin packages repo not updated to 0.9.3?

2015-10-29 Thread Florin Andrei
http://packages.2ndquadrant.com/bdr/apt/pool/main/b/bdr-plugin/ Looks like the repo has not caught up to the latest 0.9.3 release. Would it be possible to push updated packages to the repo, please? It would be a great help with testing BDR. Thanks, -- Florin Andrei http://florin.myip.org

Re: [GENERAL] BDR: cannot drop database even after parting the node

2015-09-17 Thread Florin Andrei
_nodes; TRUNCATE TABLE bdr.bdr_connections; BEGIN; SET LOCAL bdr.permit_unsafe_ddl_commands = true; SET LOCAL bdr.skip_ddl_locking = true; SECURITY LABEL FOR 'bdr' ON DATABASE bdrdemo IS '{"bdr": false}'; COMMIT; -- Restart PG service. -- To drop test database: DRO

Re: [GENERAL] BDR problem

2015-09-16 Thread Florin Andrei
ty postgresql-bdr-contrib-9.4 9.4.4-1trusty postgresql-bdr-server-dev-9.4 9.4.4-1trusty It's very useful to have these packages available, helps a lot with testing, kudos to everyone involved. -- Florin Andrei http://florin.myip.org/ -- Sent via pgsql-general mailing list (pgsql-g

Re: [GENERAL] BDR: cannot drop database even after parting the node

2015-09-16 Thread Florin Andrei
it a while bdrdemo=# DROP TABLE t1bdr; ERROR: No peer nodes or peer node count unknown, cannot acquire DDL lock HINT: BDR is probably still starting up, wait a while -- Florin Andrei http://florin.myip.org/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make chang

[GENERAL] BDR: cannot drop database even after parting the node

2015-09-16 Thread Florin Andrei
mpletely, so that those workers are laid to rest and never respawn? Basically, how do I reset BDR completely? It seems to retain the memory of the bdrdemo database somewhere. -- Florin Andrei http://florin.myip.org/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] BDR: cannot remove node from group

2015-09-15 Thread Florin Andrei
On 2015-09-15 16:45, Florin Andrei wrote: On 2015-08-25 18:29, Craig Ringer wrote: On 26 August 2015 at 07:19, Florin Andrei wrote: What do I need to do to start over? I want to delete all traces of the BDR configuration I've done so far. you need to DROP the database you removed,

Re: [GENERAL] BDR: cannot remove node from group

2015-09-15 Thread Florin Andrei
On 2015-08-25 18:29, Craig Ringer wrote: On 26 August 2015 at 07:19, Florin Andrei wrote: What do I need to do to start over? I want to delete all traces of the BDR configuration I've done so far. you need to DROP the database you removed, then re-create it as a new empty database

[GENERAL] avoid lock conflict between SELECT and TRUNCATE

2015-09-09 Thread Florin Andrei
sly, TRUNCATE is blocked until the long SELECT finishes. I'm looking for ways to avoid the conflict. One way would be to do incremental updates to the users table - that's not an option yet. What if I rename the users table to users_MMDD? Would that still be blocked by SELECT? If

[GENERAL] BDR: cannot remove node from group

2015-08-25 Thread Florin Andrei
is already a member of a BDR group HINT: Connect to the node you wish to add and run bdr_group_join from it instead What do I need to do to start over? I want to delete all traces of the BDR configuration I've done so far. -- Florin Andrei http://florin.myip.org/ -- Sent via pgsql-gene

Re: [GENERAL] master/master replication with load balancer in front

2015-08-24 Thread Florin Andrei
so). As load balancer, PgPool-II might be what you're looking for. Would there be any issues if I just used an ELB pointing at two masters? Let's say I use sticky sessions to avoid clients switching masters too much. -- Florin Andrei http://florin.myip.org/ -- Sent via pgsql

Re: [GENERAL] master/master replication with load balancer in front

2015-08-24 Thread Florin Andrei
On 2015-08-23 06:56, Martín Marqués wrote: El 21/08/15 a las 20:45, Florin Andrei escribió: The single instance scheme is not very reliable. I need to build a new DB backend. I'll set up Postgres 9.4. Ideally, I'd like to setup 2 instances, each instance placed in a different availab

[GENERAL] master/master replication with load balancer in front

2015-08-21 Thread Florin Andrei
g all analytics on the other node, what would be the best replication technique in this case? (We are also considering a migration from the batch update model to a more continuous stream.) -- Florin Andrei http://florin.myip.org/ -- Sent via pgsql-general mailing list (pgsql-general@postgresql.o

[GENERAL] Timestamp with time zone 'negative' problem

2012-01-20 Thread Prodan, Andrei
such... but that's a very gimmicky solution. Thank you, Andrei Prodan -- Awinta Consulting S.R.L. Canaluluistr. 44 505600 Sacele Brasov, Romania Tel. +40368 / 441024 Fax. +40368 / 441024 -- -

Re: [GENERAL] Encoding using the Frontend/Backend Protocol TCP/IP

2009-11-19 Thread Kovalevski Andrei
*557064617465207472616E73616374696F6E7320736574206465736372697074696F6E3D27546573742056616C75657364C387272077686572652069643D313133 Raimon Fernandez wrote: On 19/11/2009, at 18:13, Raimon Fernandez wrote: On 19/11/2009, at 17:27, Kovalevski Andrei wrote: Hi could it be that you have errors

Re: [GENERAL] Encoding using the Frontend/Backend Protocol TCP/IP

2009-11-19 Thread Kovalevski Andrei
Hi could it be that you have errors in your UTF8 string? For example you might use UTF16 encoding, it can explain why some characters force errors but others are not. Can you post here the string and its' encoded version? Raimon Fernandez wrote: Hello, I'm trying to send some strings that

Re: [GENERAL] Numeric Type and VB/ODBC

2009-11-10 Thread Andrei
You can try If (IsNumeric(varToTest) And 0 = CDbl(varToTest)) Then IsNothing = True Bret wrote: This may not be the right group, if so, just let me know. I have a table with a type [numeric]. When executing queries, I get the data which happens to be (6.5) in this case, but my VB6 function w

Re: [GENERAL] How can I calculate differences between values

2009-11-10 Thread Andrei
Hi; also you can try this query which should work for any version SELECT a.userid, a.data, max(f.data), a.data - max(f.data) FROM (SELECT userid, data FROM foo EXCEPT SELECT userid, min(data) FROM foo GROUP BY userid) a LEFT JOIN foo f ON (f.userid = a.userid AND f.data < a.data) GROUP B

Re: [GENERAL] Mammoth replicator

2009-02-18 Thread Andrei Kovalevski
replicate the whole DB). I'm I wrong on this? And finally a question related with the instalation: are there debian binaries to install replicator? TIA -- Andrei Kovalevski PostgreSQL Replication, Consulting, Custom Development, 24x7 support Managed Services, Shared and Dedicated Hosti

Re: [GENERAL] How to design a "customer" TABLE which hold credit card infos and other payments?

2008-11-07 Thread Andrei Kovalevski
toring any card and card holder info, and you definitely shouldn't keep in DB the whole data required to authorize transaction. Just take in mind how dangerous this info could be in case of security leak. -- Andrei Kovalevski PostgreSQL Replication, Consulting, Custom Development, 24x7 suppo

Re: [GENERAL] [ODBC] Error in Adding All Table

2008-10-20 Thread Andrei Kovalevski
h&oum l;rt? Der kann`s mit allen: *http://www.produkte.web.de/messenger/?did=3123* -- Andrei Kovalevski PostgreSQL Replication, Consulting, Custom Development, 24x7 support Managed Services, Shared and Dedicated Hosting Co-Authors: plPHP, ODBCng - http://www.commandprompt.com/

Re: [GENERAL] Connect to postgres from a dynamic IP

2008-03-03 Thread Andrei Kovalevski
specially to authenticate the connection. Opening your access to everyone without crypto sounds like something you don't want to do. Specially if users can change their own passwords... Does anybody ever measured performance slowdown for SSL connections? -- Andrei Kovalevski PostgreSQL Replicat

Re: [GENERAL] Newbee to databases (ODBC)

2008-01-21 Thread Andrei Kovalevski
ill not work since I'm using "no" in the second statement to define the blob size, and no is not set yet. I could solve it by using 2 different select statemen (once for the size and one for the blob) but that seems to be a bad solution. Sorry again! /Paul -- Andrei Kovalevsk

Re: [GENERAL] (un)grouping question

2008-01-21 Thread Andrei Kovalevski
e other unique values in this column? ;) Regards, Jeff Davis ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq -- Andrei Kovalevski PostgreSQL Replication, Consul

Re: [GENERAL] (un)grouping question

2008-01-21 Thread Andrei Kovalevski
M mytable; ...if you don't need uid in the result set. Regards, Jeff Davis -- Andrei Kovalevski PostgreSQL Replication, Consulting, Custom Development, 24x7 support Managed Services, Shared and Dedicated Hosting Co-Authors: plPHP, ODBCng - http://www.commandprompt.com/ -

Re: [GENERAL] postgresql 8.3rc1 on vista

2008-01-20 Thread Andrei Kovalevski
suggestions? Thanks, Roger ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match -- Andrei Kovalevski Postg

Re: [GENERAL] Windows x64 Port

2007-11-14 Thread Andrei Kovalevski
I'm wondering - what kind of problems do you expect with such port? By the way, are there any benchmark results to compare 32 and 64 bit version on Linux? Thanks, Andrei. ---(end of broadcast)--- TIP 9: In versions below 8.0, the

Re: [GENERAL] Npsql is much faster than ODBC ?

2007-11-07 Thread Andrei Kovalevski
only learned a lot more about databases, but especially that Postgres is superior to MySQL ;-) Thanks, Andrei. ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] odbcng

2007-11-07 Thread Andrei Kovalevski
7;foo'::TEXT, 'bar'") While Not rs.EOF rs.MoveNext Wend End Sub Thanks, Sam ---(end of broadcast)--- TIP 6: explain analyze is your friend Thanks, Andrei. ---(end of broadcast)---

Re: [GENERAL] number errors

2007-11-07 Thread Andrei Kovalevski
Hello, If you use ODBC - you should devide error from ODBC driver and errors from PostgreSQL, ODBC driver return it's own error codes, and composes error Description depending on Error Code and Text from PostgreSQL server. So you should have numbers: 1) ODBC error code - described in MSDN; 2

Re: [GENERAL] Windows vista

2007-10-04 Thread Andrei Kovalevski
(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match Andrei ---(end of broadcast)--- TIP 4: Have

Re: [GENERAL] Installation problems

2007-08-20 Thread Andrei Kovalevski
Hi! [EMAIL PROTECTED] wrote: Hi all. I post it again, not sure to have posted it correctly the last time. My problem is about installing PostgreSQL 8.2.3 on WIndows XP Mediacenter. At the end of the installation, I get the following error: "unable to start the service. Administrator right req

Re: [GENERAL] Fastest way to import only ONE column into a table? (COPY doesn't work)

2007-08-16 Thread Andrei Kovalevski
Phoenix Kiula wrote: On 16/08/07, Richard Broersma Jr <[EMAIL PROTECTED]> wrote: --- Phoenix Kiula <[EMAIL PROTECTED]> wrote: On 16/08/07, Rodrigo De León <[EMAIL PROTECTED]> wrote: On Aug 15, 11:46 pm, [EMAIL PROTECTED] ("Phoenix Kiula") wrote: Appreciate any tips, b

Re: [GENERAL] PG Admin

2007-08-04 Thread Andrei Kovalevski
Bob Pawley wrote: Can anyone tell me why a table developed through the PG Admin interface isn't found by SQL when accessing it through the SQL interface?? Bob Pawley 1) Are you sure you are connecting to the same database? 2) What kind of SQL interface you are using? A

Re: [GENERAL] pgTray - win32 tray tool for monitoring PostgreSQL service

2007-08-02 Thread Andrei Kovalevski
Tony Caduto wrote: Andrei Kovalevski wrote: Hi all! Everyone who use PostgreSQL server on Windows knows - it would be nice to have some tray management and monitoring tool for PostgreSQL server which is running as NT Service (for example - MS SQL already have such tool). I have

[GENERAL] pgTray - win32 tray tool for monitoring PostgreSQL service

2007-08-02 Thread Andrei Kovalevski
://pgfoundry.org/projects/pgtray. I'm opened for any ideas how can we improve this tool and what features whould be helpful. Thanks, Andrei. ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] Error installing postgresql-8.2.4 on windows 2003 server

2007-08-02 Thread Andrei Kovalevski
leged user. You can use runas /user:username "initdb -D ..." Andrei. ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org/

Re: [GENERAL] odbc with encrypted ssl key?

2007-06-11 Thread Andrei Kovalevski
HRASE=[string] - your SSL password phrase You can either use these parameters in connection string or configure DSN. Andrei. Andreas wrote: Hi, is there a way to have MS-Access use ODBC and still use a passphrase encrypted private-key? Right now ODBC works with unencrypted key. For sec

Re: [GENERAL] problems with SELECT query results

2007-05-29 Thread Andrei Kovalevski
Joshua wrote: I checked the table and found that none of my fields in the SELECT statement contain NULLs. Any other suggestions? Why are you using such constructions in your query: ',' || ',' || ',' ? May be this set of commas makes you think that some of your fields are empty? Do you have e

Re: [GENERAL] dns less connection

2007-05-17 Thread Andrei Kovalevski
Hi! First of all, be sure you have PostgreSQL ODBC driver installed. To do this - follow: start ->control panel -> administrative tools -> data sources (ODBC) -> drivers If you see in a list "PostgreSQL ANSI" or "PostgreSQL Unicode" - this means driver is installed, otherwise - you s

Re: [GENERAL] C functions under windows

2007-05-03 Thread Andrei Kovalevski
Islam Hegazy wrote: Hi all I have postgresql server installed on a windows machine and I want to retrieve data using C functions. I followed the steps in the documentation but it didn't work for windows. I created a .dll projects for my functions but postgres.h calls .h files that I can't f

Re: [GENERAL] query from a list of ids

2007-04-25 Thread Andrei Kovalevski
You can try this one. SELECT table2.* FROM (SELECT string_to_array(ids, ', ') FROM table1 WHERE name = 'Peter') AS a(a), (SELECT generate_series(1,array_upper(string_to_array(ids, ', '),1)+1,1)FROM table1 WHERE name = 'Peter') c(n),

Re: [GENERAL] SQLConnect failure

2007-04-03 Thread Andrei Kovalevski
[EMAIL PROTECTED] wrote: Original Message Subject: Re: [GENERAL] SQLConnect failure From: Bill Moran <[EMAIL PROTECTED]> Date: Mon, April 02, 2007 2:54 pm To: [EMAIL PROTECTED] Cc: pgsql-general@postgresql.org In response to [EMAIL PROTECTED]: We have code that has be

[GENERAL] real - integer type cast in prepared statements

2006-03-07 Thread Andrei
Hi! Why when I prepare statement by parsing such query: 'SELECT * FROM "test" WHERE "ind" < $1 + 1' ("ind" is of type REAL) $1 is interpreted by backend as INTEGER? Parse completed successfully, but trying to bind parameter as '20.20' resulted in "ERROR C22P02 Minvalid input syntax for intege

Re: [GENERAL] windows 1252 encoding

2005-05-13 Thread Andrei Gaspar
w are the extra characters in 1252 treated by the server with LATIN1 encoding? The error message is a little missleading, it's a character that is represented on 3 bytes, the first one is 0xe2. Andrei -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Viru

[GENERAL] windows 1252 encoding

2005-05-13 Thread Andrei Gaspar
. So, any ideas? Andrei -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.9 - Release Date: 5/12/2005 ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unreg

[GENERAL] Collation problem

2005-05-11 Thread Andrei Gaspar
ect * from tkp.TranslationDictionary where cKeyDictionary = 'Strasse'; ckeydictionary | cvalue + (0 rows) Andrei -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.8 - Release Date: 5/10/2005 --

Re: [GENERAL] Intervals

2005-04-26 Thread Andrei Gaspar
IMMUTABLE; Andrei Jake Stride wrote: Is there a way to convert in interval into hours? I have a table that records the amount of time worked by a person and want to sum up all the hours, however with the column being an interval once you reach more than 24 hours it turns that into a day. This is not

Re: [GENERAL] grant all privileges to all tables in a database

2005-04-13 Thread Florin Andrei
On Mon, 2005-04-11 at 03:28 +0200, Daniel Verite wrote: > Florin Andrei wrote: > > > On MySQL, it's enough to do this: > > > > GRANT ALL PRIVILEGES ON dbname.* TO username [IDENTIFIED BY 'password']; > > > > On PostgreSQL, you have to g

[GENERAL] grant all privileges to all tables in a database

2005-04-10 Thread Florin Andrei
relname||' TO username;' FROM pg_class c JOIN pg_namespace n ON (n.oid=c.relnamespace) WHERE c.relkind='S' AND n.nspname='public';" | psql -d dbname It seems to work fine on pgsql version 8. Of course, after creating new tables and stuff, you may have to re-run

Re: [GENERAL] dump/restore problem

2004-01-14 Thread Andrei Ivanov
which the data was taken from and where everything was working fine with php, but I was having troubles with java displaying the characters wrong... now I'm trying to see if with the data converted to unicode works. Thanks. On Wed, 14 Jan 2004, Tom Lane wrote: > Andrei Ivanov <

Re: [GENERAL] dump/restore problem

2004-01-14 Thread Andrei Ivanov
You will find more info attached. What about the invalid UNICODE data ? How can I fix it ? In the attachment there is the line that gives the error... Thanks. On Tue, 13 Jan 2004, Tom Lane wrote: > Andrei Ivanov <[EMAIL PROTECTED]> writes: > > I have a dump created with pg

Re: [GENERAL] ERROR: did not find '}' at end of input node (again)

2003-12-11 Thread Andrei Ivanov
I've recompiled without the patch and all is fine now. I'm sorry for waisting your time... On Thu, 11 Dec 2003, Tom Lane wrote: > Andrei Ivanov <[EMAIL PROTECTED]> writes: > > It's an almost clean build (it has > > http://gppl.terminal.ru/hier-Pg7.4-0

[GENERAL] ERROR: did not find '}' at end of input node (again)

2003-12-11 Thread Andrei Ivanov
This happend again, but now, postgresql tells me where it happens: pg_dump: SQL command failed pg_dump: Error message from server: ERROR: did not find '}' at end of input node pg_dump: The command was: select (select usename from pg_user where usesysid = datdba) as dba, pg_encoding_to_char(enc

Re: [GENERAL] ERROR: nodeRead: did not find '}' [x2]

2003-11-21 Thread Andrei Ivanov
On Thu, 20 Nov 2003, Tom Lane wrote: > Andrei Ivanov <[EMAIL PROTECTED]> writes: > > select * from pg_rewrite where ev_class = 'pg_user'::regclass gives > > [ lots of cruft ] > > Well, that's interesting, because I get exactly the same data from my

[GENERAL] ERROR: nodeRead: did not find '}'

2003-11-19 Thread Andrei Ivanov
Hello, it seems my postgresql data has somehow become corrupted (by a forced shutdown I think): psql template1 -U shadow Password: ERROR: nodeRead: did not find '}' at end of plan node Welcome to psql 7.3.4, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \