Re: [GENERAL] What is Dialect

2010-11-22 Thread Mike Christensen
If I understand your question correctly, a Dialect is an abstraction layer that allows Hibernate to talk with different database backends (MySQL, PG, Oracle, SQLServer, etc). Since different databases have different syntaxes, various features, etc. This seems more of a Hibernate question though,

Re: [GENERAL] What is Dialect

2010-11-22 Thread Andreas
Am 22.11.2010 08:32, schrieb Adarsh Sharma: I am reading about Dialects of different databases. Yet I can't understand what is the need of dialect in Postgres or any other like Hibernate uses Dialect of all Databases for ORM. What is it As far as I know, the term dialect is used to express

Re: [GENERAL] What is Dialect

2010-11-22 Thread Mike Christensen
On Mon, Nov 22, 2010 at 12:26 AM, Andreas maps...@gmx.net wrote: Am 22.11.2010 08:32, schrieb Adarsh Sharma: I am reading about Dialects of different databases. Yet I can't understand what is the need of dialect in Postgres or any other like Hibernate uses Dialect of all Databases for ORM.

[GENERAL] could not accept SSPI security context

2010-11-22 Thread Reto Schöning
Hi, I've set up 8.3 to use SSPI for authentication (clients and server on windows XP). I can successfully connect from clients using psql and another db client using SSPI authentication. However when trying to connect with Npgsql (2.0.11) as the same user, the following error occurs: could

Re: [GENERAL] could not accept SSPI security context

2010-11-22 Thread Magnus Hagander
On Mon, Nov 22, 2010 at 10:21, Reto Schöning reto.schoen...@gmail.com wrote: Hi, I've set up 8.3 to use SSPI for authentication (clients and server on windows XP). I can successfully connect from clients using psql and another db client using SSPI authentication. However when trying to

Re: [GENERAL] could not accept SSPI security context

2010-11-22 Thread Magnus Hagander
Plase don't drop the mailinglist from the thread. On Mon, Nov 22, 2010 at 11:57, Reto Schöning reto.schoen...@gmail.com wrote: Thanks for the hint. The full error message from npgsql including that detail row is Npgsql.NpgsqlException was unhandled   Message=FATAL: XX000: could not accept

Re: [GENERAL] The first dedicated PostgreSQL forum

2010-11-22 Thread Gurjeet Singh
On Fri, Nov 19, 2010 at 1:07 AM, Thom Brown t...@linux.com wrote: As has been said previously, an unlinked forum (one which has no interaction with the mailing list) is destined to fail, as others have in the past. It's creates a fragmented community and poor support on such a forum would

Re: [GENERAL] The first dedicated PostgreSQL forum

2010-11-22 Thread Elliot Chance
On 22/11/2010, at 10:22 PM, Gurjeet Singh wrote: On Fri, Nov 19, 2010 at 1:07 AM, Thom Brown t...@linux.com wrote: As has been said previously, an unlinked forum (one which has no interaction with the mailing list) is destined to fail, as others have in the past. It's creates a fragmented

Re: [GENERAL] could not accept SSPI security context

2010-11-22 Thread Reto Schöning
Here's the log output for a failed connection: 2010-11-22 13:25:54 CET FATAL: could not accept SSPI security context 2010-11-22 13:25:54 CET DETAIL: The logon attempt failed (8009030c) 2010/11/22 Magnus Hagander mag...@hagander.net Plase don't drop the mailinglist from the thread. On

Re: [GENERAL] could not accept SSPI security context

2010-11-22 Thread Magnus Hagander
Hmm. That's a simple SEC_E_LOGON_DENIED. Simply meaning usedname/password is incorrect. The security eventlog on the server (or domain controller) might have more information around it. If not, I'm not sure what's wrong there - if it happens only in npgsql it must be related to that. Or perhaps -

Re: [GENERAL] Cancel a query.

2010-11-22 Thread Vick Khera
On Sat, Nov 20, 2010 at 12:41 AM, Rob Brown-Bayliss r.brown.bayl...@gmail.com wrote: I am trying to catch time outs etc, basically after a set amount of time I am assuming something has failed. Just set a statement timeout before running your potentially long queries. Your client code will

Re: [GENERAL] Cancel a query.

2010-11-22 Thread Matthieu Huin
You could create a function calling that query with Security Definer (the function will be called with the privileges of the user that created the function) : CREATE OR REPLACE FUNCTION stop_query(myprocpid int) RETURNS BOOLEAN AS $$ DECLARE b boolean; BEGIN SELECT pg_cancel_backend(myprocpid)

Re: Fwd: [GENERAL] Postgres forums ... take 2

2010-11-22 Thread Bruce Momjian
Magnus Hagander wrote: On Sat, Nov 20, 2010 at 16:54, Bruce Momjian br...@momjian.us wrote: Elliot Chance wrote: Also, if someone registers on the forum, do they get a major domo registration email? ?And if so, would this be set to receive no emails upon registration? ?I'm not clear

[GENERAL] extensions: creation of .sql files

2010-11-22 Thread Turner, John J
This is what I did to get PGXS on Windows XP: - built pg 9.0 from source using MinGW/MSYS - also installed binary version of pg 9.0 - copied the PGXS tree from source into the corresponding path on the binary install Note: I had to use the binary install since the AV software

[GENERAL] Table name with umlauts

2010-11-22 Thread Thomas Kellerer
Hi, I'm curious why the following is not working: c:\psql postgres postgres psql (9.0.1) Type help for help. postgres=# select version(); version - PostgreSQL 9.0.1, compiled by Visual C++ build 1500, 32-bit

Re: [GENERAL] Table name with umlauts

2010-11-22 Thread Tom Lane
Thomas Kellerer spam_ea...@gmx.net writes: I'm curious why the following is not working: postgres=# show client_encoding; client_encoding - UTF8 (1 row) postgres=# create table umlaut_test_ö (id integer); ERROR: invalid byte sequence for encoding UTF8: 0xf6202869

Re: [GENERAL] Table name with umlauts

2010-11-22 Thread Thomas Kellerer
Tom Lane wrote on 22.11.2010 19:25: Thomas Kellererspam_ea...@gmx.net writes: I'm curious why the following is not working: postgres=# show client_encoding; client_encoding - UTF8 (1 row) postgres=# create table umlaut_test_ö (id integer); ERROR: invalid byte

Re: [GENERAL] Table name with umlauts

2010-11-22 Thread Raymond O'Donnell
On 22/11/2010 19:01, Thomas Kellerer wrote: Tom Lane wrote on 22.11.2010 19:25: Thomas Kellererspam_ea...@gmx.net writes: I'm curious why the following is not working: postgres=# show client_encoding; client_encoding - UTF8 (1 row) postgres=# create table umlaut_test_ö

Re: [GENERAL] Table name with umlauts

2010-11-22 Thread Tom Lane
Raymond O'Donnell r...@iol.ie writes: On 22/11/2010 19:01, Thomas Kellerer wrote: Tom Lane wrote on 22.11.2010 19:25: It looks to me like your console is not in fact producing UTF8; it's representing ö as 0xf6, which I think is right for Latin1. Select the proper client_encoding. I assume

[GENERAL] Debug advice when postgres connection maxing out

2010-11-22 Thread anypossibility
Server: OS X 10.5 PostgreSQL version: 8.3 We experience this connection maxing out once in the full moon. The request from client reaches to the server but client never receive response back. The queries are very simple update on one record or select one record using primary key (checked

Re: [GENERAL] Table name with umlauts

2010-11-22 Thread Peter Geoghegan
On 22 November 2010 19:36, Tom Lane t...@sss.pgh.pa.us wrote: I had the idea that the Windows version of psql was smart enough to set client_encoding based on the console encoding it finds itself running under, but I might be wrong about that.  Or maybe you did something that overrode its

Re: [GENERAL] Table name with umlauts

2010-11-22 Thread Thomas Kellerer
Tom Lane wrote on 22.11.2010 20:36: I had the idea that the Windows version of psql was smart enough to set client_encoding based on the console encoding it finds itself running under, but I might be wrong about that. Or maybe you did something that overrode its default? I changed to chcp

[GENERAL] Postgres tips in the latest Chicken Gazette

2010-11-22 Thread Peter Bex
Hello all, I'm not sure if this would be considered off topic, but I'd like to point out this week's issue of the Chicken Gazette in which I describe integration of array and ROW composite type handling with the PostgreSQL library for the Chicken Scheme compiler:

[GENERAL] gap between error and cure

2010-11-22 Thread Jim Kunkel
I get an error: psql: FATAL: no pg_hba.conf entry for host [local], user postgres, database template1 when I try to run psql template1 (which I have been doing successfully for several years) version 8.4.5 compiled with no switches centos 5.5 It worked last week, not this week. I saw a

[GENERAL] Extending COALESCE()

2010-11-22 Thread David Frankson
Is it possible to extend the COALESCE() function? I would like to support for coalescing an int into a Boolean, but I get syntax errors if I don't wrap coalesce in quotes. CREATE OR REPLACE FUNCTION coalesce(boolean,int) RETURNS boolean AS $$ SELECT CASE WHEN $1 IS NOT NULL

[GENERAL] very basic SQL question

2010-11-22 Thread Dan Kortschak
Hi, I'm using Pg for bioinformatic work and I want to be able to insert, uniquely, biological sequences into a table returning the sequence id - this part is fine. However, if the sequence already exists in the table I want to return to id. At the moment it seems to me that I should do a SELECT

Re: [GENERAL] gap between error and cure

2010-11-22 Thread Jayadevan M
Hello, I saw a reference to run a command show hba_file but there hasn't been any clue as to WHERE one runs that command. Please hold my hand. Whichuser (root or postgres) and which program? Please try the command from psql. postgres=# select user; current_user --

Re: [GENERAL] Debug advice when postgres connection maxing out

2010-11-22 Thread Jayadevan M
Hello, Server: OS X 10.5 PostgreSQL version: 8.3 We experience this connection maxing out once in the full moon. The request from client reaches to the server but client never receive response back. The queries are very simple update on one record or select one record using primary

Re: [GENERAL] Extending COALESCE()

2010-11-22 Thread Pavel Stehule
Hello I am afraid, so this isn't possible. You have to use a explicit cast int to bool select coalesce(true, 0::bool) regards Pavel Stehule 2010/11/23 David Frankson david.frank...@infinitecampus.com: Is it possible to extend the COALESCE() function?  I would like to support for coalescing