Re: [web2py] PostgreSQL - column "COLUMN" must appear in the GROUP BY clause or be used in an aggregate function LINE 1:

2020-11-16 Thread villas
Usually, you would only require GROUP BY if you were trying to calculate an aggregate function such as the SUM, COUNT, AVG etc on a column. In this case, you are not specifying any such function, so it is unclear what you are trying to do. Perhaps you are simply trying to express an ORDER BY?

Re: [web2py] PostgreSQL - column "COLUMN" must appear in the GROUP BY clause or be used in an aggregate function LINE 1:

2020-11-15 Thread valq...@gmail.com
Pg is not a toy like mysql It always required an explicit notation for groupby воскресенье, 15 ноября 2020 г. в 11:18:55 UTC+3, ermolaev...@gmail.com: > for grp in db((db.pay_ins_stack.ref_==db.pay_ins.id) > & (db.pay_ins.ref_ == db.deal_acc_addrs.id ) > & (db

Re: [web2py] PostgreSQL - column "COLUMN" must appear in the GROUP BY clause or be used in an aggregate function LINE 1:

2020-11-15 Thread Dmitrii Ermolaev
for grp in db((db.pay_ins_stack.ref_==db.pay_ins.id) & (db.pay_ins.ref_ == db.deal_acc_addrs.id ) & (db.deal_acc_addrs.xcurr_id == xcurr.id) ).select(groupby=(db.deal_acc_addrs.id, db.pay_ins_stack.id)): same error: column "pay_ins.id" m

Re: [web2py] PostgreSQL error on db.currs_stats[0] = {..}

2020-11-15 Thread Dmitrii Ermolaev
I update all this code by INSERT суббота, 14 ноября 2020 г. в 12:33:24 UTC+3, kell...@gmail.com: > Probably also something for @Leonel Câmara . > > Can you compare the raw sql of Mysql and PostgreSQL of what you are > trying to do please? > > And post it here, then we can probably see what nee

Re: [web2py] PostgreSQL error on db.currs_stats[0] = {..}

2020-11-15 Thread Dmitrii Ermolaev
I make 2 cycles FOR - first for GROUPBY second for SELECT суббота, 14 ноября 2020 г. в 12:33:24 UTC+3, kell...@gmail.com: > Probably also something for @Leonel Câmara . > > Can you compare the raw sql of Mysql and PostgreSQL of what you are > trying to do please? > > And post it here, then we

Re: [web2py] PostgreSQL error on db.currs_stats[0] = {..}

2020-11-14 Thread Kevin Keller
Probably also something for @Leonel Câmara . Can you compare the raw sql of Mysql and PostgreSQL of what you are trying to do please? And post it here, then we can probably see what needs to be done. Thanks! Am Sa., 14. Nov. 2020 um 10:04 Uhr schrieb Dmitrii Ermolaev < ermolaev.icrea...@gmail.

Re: [web2py] PostgreSQL - column "COLUMN" must appear in the GROUP BY clause or be used in an aggregate function LINE 1:

2020-11-14 Thread Kevin Keller
I think @Leonel Câmara would know best what is going on here. My uneducated guess is that you are using Postgresql12 and that there were some major changes from postgres11 to postgres12. Either Pydal has not caught up yet, or since pydal is not strictly an ORM, you just have to actually adapt you

[web2py] PostgreSQL error on db.currs_stats[0] = {..}

2020-11-14 Thread Dmitrii Ermolaev
if not currs_stats: db.currs_stats[0] = { 'curr_id': curr_id, 'deal_id': deal_id, 'average_': volume_out, 'count_': 1, } on MySQl all work error: No such record: 0 -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Sou

[web2py] PostgreSQL - column "COLUMN" must appear in the GROUP BY clause or be used in an aggregate function LINE 1:

2020-11-14 Thread Dmitrii Ermolaev
for grp in db((db.pay_ins_stack.ref_==db.pay_ins.id) & (db.pay_ins.ref_ == db.deal_acc_addrs.id ) & (db.deal_acc_addrs.xcurr_id == xcurr.id) ).select(groupby=(db.deal_acc_addrs.id)): ERROR: column "pay_ins_stack.id" must appear in the GROUP

[web2py] Is there such a thing as a reliable, managed web2py/PostgreSQL host with good support?

2019-02-16 Thread Tom Campbell
Need managed, reliable hosting for a mission critical app that hits the eBay API at specified times. It's a generic CRUD app except that scheduled tasks (written in Go) must be run with 1 second accuracy, no more than 200/second at peak times. I am a pretty terrible sysadmin so my strong prefer

[web2py] PostgreSQL log flooded with "could not receive data from client: Connection reset by peer" messages;

2018-11-18 Thread Tadas U
Web2py version: Version 2.14.6-stable+timestamp.2016.05.10.00.21.47 AFAIK, the scheduler is responsible, e.x.: SETUP (e.x.): scheduler.queue_task( 'test__task_insert', application_name='app', repeats=0, period=60, timeout=3600, retry_failed=-1) def task_insert(): db.table.insert(ti

[web2py] Postgresql & pydal adapter problem

2018-08-08 Thread jjabaya
I'm trying to deploy on heroku, but am having troubles connecting to their database. Imported gluon.contrib.heroku.py but get_db() doesn't seem to be working well with the adapters Any ideas where to look would be appreciated. Failure to connect, tried 5 times: Traceback (most recent call las

[web2py] Re: web2py, PostgreSQL and exclusive locks

2018-05-03 Thread Lisandro
Please ignore that last message of mine. The hanging problem was produced by an issue with the redis_cache.py adapter failing to write a cache key. El miércoles, 2 de mayo de 2018, 17:08:38 (UTC-3), Lisandro escribió: > > Well, I've commented out the line of the postgresql adapter of web2py, th

[web2py] Re: web2py, PostgreSQL and exclusive locks

2018-05-02 Thread Lisandro
Well, I've commented out the line of the postgresql adapter of web2py, the line where it runs the SET standard_conforming_strings=on; but now it hangs in the previous line "SET CLIENT_ENCODING TO 'UTF8'". This is the function of the web2py's adapter where the application hangs: https://github.co

[web2py] Re: web2py, PostgreSQL and exclusive locks

2018-05-02 Thread Lisandro
Hi there, sorry to bother in this old post. I'm having a problem regarding standard_conforming_strings. Today my app experienced a problem with Redis going out of memory. After the problem was fixed, all my websites started to work normally, except four of them (of a total of 260 websites). For

Re: [web2py] PostgreSQL 10.2

2018-03-01 Thread Richard Vézina
Base on this : https://github.com/web2py/pydal/blob/466a39f13e443bbcc54db2d1ba6ed10196abf440/pydal/drivers.py#L45 web2py shouldn't enforce a specific version of psycopg2... Are you using python 2 or python 3 and is your last psycopg2 version you mention is install for the python version that you

[web2py] PostgreSQL 10.2

2018-03-01 Thread Rob Paire
Hello web2py community! I am in the process of moving a 4 year old web2py application to a new server and I am having trouble getting the application to connect to PostgreSQL 10.2. I am guessing because the version of psycopg2 driver in web2py is: 2.5.4 (dt dec pq3 ext) I installed the lates

[web2py] Re: Web2py Postgresql Groupby issue

2017-05-13 Thread Pierre
here: http://web2py.com/books/default/search/29?search=groupby s = db.table.field_a | db.table.field_b groupby s *always obey the computer.* :) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.goog

Re: [web2py] Web2py Postgresql Groupby issue

2017-05-12 Thread Carlos Correia
On 11-05-2017 15:22, Oasis Agano wrote: > Hello > > i have moved my connection to Postgres from sqlite and im facing this issue; > >ret = self.get_cursor().execute(command, *a[1:], **b) > ProgrammingError: column "water_flow_log.id" must appear in the GROUP BY > clause or be used in an aggre

[web2py] Web2py Postgresql Groupby issue

2017-05-11 Thread Oasis Agano
Hello i have moved my connection to Postgres from sqlite and im facing this issue; ret = self.get_cursor().execute(command, *a[1:], **b) ProgrammingError: column "water_flow_log.id" must appear in the GROUP BY clause or be used in an aggregate function LINE 1: SELECT water_flow_log.id, water

[web2py] PostGreSQL views

2016-10-11 Thread Jamie Courtes
Hi All, I'm working with a colleague who is in the process of learning web2py. In parallel, I have developed a relatively simplistic database in PostGreSQL, with approximately a dozen tables. We've managed to get the database into web2py, and can view each of the tables (and their data) in the

[web2py] PostgreSQL: json_agg()

2016-03-06 Thread Val K
Hi! This is useful aggregate function for PG-users (tested with PostgreSQL 9.3 ): def json_agg_sql(flds_lst, as_alias): json_fld_sql = """ '"%s":' || to_json(%s) """ json_row = [json_fld_sql % (f.name, f.name) for f in flds_lst] json_row_sql = "'{' || " + "|| ',' ||".joi

[web2py] PostgreSQL

2015-10-21 Thread Massimo Di Pierro
https://www.compose.io/articles/what-postgresql-has-over-other-open-source-sql-databases/ -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received thi

[web2py] postgresql json getitem function implementation

2015-08-05 Thread Manuele Pesenti
Hi! I have a table with a json field and I woul like to perform something like: db(db.mytable.id>0).select(db.mytable.myjsonfield.getitem('myfield').with_alias("myfield")) the only way I thought is the patch in attachment that works just fine but I don't like to use a patched version of the frame

[web2py] PostgreSQL - Sort with NULLS FIRST

2015-06-16 Thread pysab
Hi there :) I'm using web2py 2.9.10 with a database PostgreSQL 9.4 for a new project and I have a question about sorting. In PostgreSQL, when I execute a SELECT, I can specify 'ORDER BY x ASC NULLS FIRST', which is not the default output. Is there a way to do that with the DAL other than writin

[web2py] PostgreSQL on Pythonanywhere

2015-05-21 Thread Michele Comitini
Finally! http://blog.pythonanywhere.com/103/ Not free, but fully managed mic -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message b

[web2py] PostgreSQL connection hangs on insert

2015-05-19 Thread Bilal Hasan
I'm having a very annoying issue where the connection to a PostgreSQL database hangs and I get a "Attempted to connect to this database 5 times unsuccessfully" which renders the whole web application un-usable. I'm using PostgreSQL 9.3. Web2Py Version 2.8.2-stable+timestamp.2013.11.28.13.54.07

[web2py] Postgresql problems with 2 tabs

2015-05-07 Thread Gael Princivalle
Hello all. I've moved a db from sqlite to postgresql, but I've got a strange problem. With only one tab, ok. If I have two tabs with the same application, it seems that data's are mixed. For example in tab 1 I have a grid, in tab 2 a page. When I save from tab 1 grid I see some data's from tab 2.

[web2py] Postgresql case sensitive field

2014-12-09 Thread Leonardo Silvano
I have a legacy table, and it has some uppercases letters, so in the select the field must be wrapped in ". Something like SELECT table."fielD" from table... Is there any way filter any select that web2py does and wrap any field or table with uppercase letter around "? -- Resources: - http:/

Re: [web2py] PostgreSQL migrate / fake_migrate_all failure with relation does not exists

2014-11-30 Thread Johann Spies
> > My migrations suddenly failed with > > Error: > ('ERROR', '42P01', > 'relation "wiki_page" does not exist') > > If the relation does exist in Postgresql (which is why you want to migrate), try and move the related file in //databases/ for that table to another destination (say /var/tmp) and

[web2py] PostgreSQL migrate / fake_migrate_all failure with relation does not exists

2014-11-30 Thread Tom Øyvind Hogstad
My migrations suddenly failed with Error: ('ERROR', '42P01', 'relation "wiki_page" does not exist') This will happen for any relation trying to commenting them out etc. Running a fake_migrate_all and the problem still persists, so I can not find a way around manually modify my PostgreSQL schem

[web2py] postgreSQL: restoring pg_dump using executesql

2014-10-08 Thread Manuele Pesenti
Hi! Is there a way to restore a dump from an sql file that comes from a pg_dump command using in someway the database object defined in my model for example using the executesql method? I ask because I tried without success... it raises the sequent error in corrispondence of the line where data sta

Re: [web2py] PostgreSQL lower case id seq values

2013-12-05 Thread Michele Comitini
Test with trunk. We have done some improvements about case sensitivity. And now lastval() is used in place of curval() i.e. safer and faster. 2013/12/5 Alan Etkin > (translated from a message of Martin Miranda to web2py-usuarios) > > "... After upgrading to web2py 2.8.2-stable+timestamp.201

[web2py] PostgreSQL lower case id seq values

2013-12-05 Thread Alan Etkin
(translated from a message of Martin Miranda to web2py-usuarios) "... After upgrading to web2py 2.8.2-stable+timestamp.2013.11.28.13.54.07 my app throws the following error: (relation "testSeq_id_seq" does not exist LINE 1: select currval('"testSeq_id_seq"') ^ ) I've been using Postgres 9.1. W

[web2py] Re: web2py, PostgreSQL and exclusive locks

2013-11-24 Thread Massimo Di Pierro
We can make it optional. Please open a ticket. On Sunday, 24 November 2013 02:28:23 UTC-6, Jayadevan M wrote: > > My doubt is - do we need to explicitly set it ON? Since the default > setting is ON, any client connecting will have it turned ON anyway? > > On Sunday, November 24, 2013 1:48:23 PM U

[web2py] Re: web2py, PostgreSQL and exclusive locks

2013-11-24 Thread Jayadevan M
My doubt is - do we need to explicitly set it ON? Since the default setting is ON, any client connecting will have it turned ON anyway? On Sunday, November 24, 2013 1:48:23 PM UTC+5:30, Massimo Di Pierro wrote: > > It must be done for every connection. Do you have connection pooling on? > If a c

[web2py] Re: web2py, PostgreSQL and exclusive locks

2013-11-24 Thread Massimo Di Pierro
It must be done for every connection. Do you have connection pooling on? If a connection is recycled it should not do it again. On Saturday, 23 November 2013 22:49:47 UTC-6, Jayadevan M wrote: > > Thanks for the reply. OK, let us take this forward on the first one > (default behaviour). Since th

[web2py] Re: web2py, PostgreSQL and exclusive locks

2013-11-23 Thread Jayadevan M
Thanks for the reply. OK, let us take this forward on the first one (default behaviour). Since the default behaviour is to SET standard_conforming_strings=on, is there a need to do it again, for each connection/call? It will incur an ever-so-small overhead which can be avoided? On Saturday, No

[web2py] Re: web2py, PostgreSQL and exclusive locks

2013-11-23 Thread Niphlod
BTE, if you see an exclusive lock right on the SET standard_conforming_strings=on don't worry, it doesn't lock any tables. On Saturday, November 23, 2013 3:01:00 PM UTC+1, Massimo Di Pierro wrote: > > You raise two issues: > > 1) About > SET standard_conforming_strings=on > This is required and i

[web2py] Re: web2py, PostgreSQL and exclusive locks

2013-11-23 Thread Massimo Di Pierro
You raise two issues: 1) About SET standard_conforming_strings=on This is required and in fact as you say it is the default behavior since 9.1. This has nothing to do which locking. 2) You see exclusive locks. Which locks? Can you say more? On Saturday, 23 November 2013 05:53:02 UTC-6, Jayade

[web2py] Re: web2py, PostgreSQL and exclusive locks

2013-11-23 Thread Jayadevan M
Is it possible to avoid this? Especially since the default server value is ON since PostgreSQL 9.1 http://www.postgresql.org/docs/9.3/static/runtime-config-compatible.html On Saturday, November 23, 2013 5:23:02 PM UTC+5:30, Jayadevan M wrote: > > I am testing our web2py application with a few co

[web2py] web2py, PostgreSQL and exclusive locks

2013-11-23 Thread Jayadevan M
I am testing our web2py application with a few concurrent users. While monitoring the database (PostgreSQL), I can see a number of exclusive locks. The SQL is SET standard_conforming_strings=on Is this expected behaviour? -- Resources: - http://web2py.com - http://web2py.com/book (Documentatio

Re: [web2py] Postgresql and timestamp

2013-09-17 Thread Johann Spies
The type of the field should be 'datetime'. A timestamp can be done with the following syntax according to the book (search for 'request.now') : Field('created_on', 'datetime', default=request.now, update=request.now, writable=False), I suspect the timesone-thing can be done with repr

[web2py] Postgresql and timestamp

2013-09-17 Thread Nate
Hi I've looked through the forum and can find nothing. my code db.define_table('franchise', Field('code', 'string', length=1), Field('name'), Field('recorddate','timestamp with time zone'), ) the error Field: unknown field type: timestamp with time zone for recorddate Assistance appreciated

Re: [web2py] PostgreSQL problem

2013-06-16 Thread Arnon Marcus
Done. https://code.google.com/p/web2py/issues/detail?id=1535 https://code.google.com/p/web2py/issues/detail?id=1536 Just so you know... -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving e

Re: [web2py] PostgreSQL problem

2013-06-13 Thread Richard Vézina
Open an issue on google code I guess. You could join a app that will make it easier to reproduce the problem an the explanation required to reproduce. Richard On Thu, Jun 13, 2013 at 1:00 PM, Arnon Marcus wrote: > We've been dealing with issue for a long time now, with a working > workaround,

[web2py] PostgreSQL problem

2013-06-13 Thread Arnon Marcus
We've been dealing with issue for a long time now, with a working workaround, but frankly, we sbouldn't bave to. It's actually a very basic and common use-case, so I am surprised nobody brought it up before... The issue is with migration when changing constraints on fields. It fails silently. T

[web2py] PostgreSQL problem

2013-06-13 Thread Arnon Marcus
We've been dealing with issue for a long time now, with a working workaround, but frankly, we sbouldn't bave to. It's actually a very basic and common use-case, so I am surprised nobody brought it up before... The issue is with migration when changing constraints on fields. It fails silently. T

[web2py] PostgreSQL: duplicate key value...

2013-06-09 Thread lesssugar
I'm aware this might be rather a postgresql question but maybe someone knows how to deal with it. I defined 'city' table db.define_table('city', Field('id', length=8), Field('country', length=2, unique=True), Field('region', length=3), Field('url', length=50), Field('name', length=50), Field('la

[web2py] Postgresql (DAL) error, help needed

2012-10-01 Thread lyn2py
Hi, I am using Postgresql and encountered the following errors. These errors do not come up when I use SQLite. I have the following code: ###MODEL db.define_table('deals', Field('deal_name', 'string',length=255,requires=IS_NOT_EMPTY()), Field('num_A', 'integer',default=0), Field('

[web2py] Postgresql and unix_sock

2012-09-13 Thread Liam
Hi all, Due to a strange Postgresql setup by my systems admin, I can not specify the host as "localhost" to connect to my production database. Instead, I have to specify the unix socket. This is currently unsupported in web2py, but I came up with a temporary workaround for the time being. In a

[web2py] PostgreSQL DAL connection issue

2012-07-19 Thread Abhishek Gupta
Hi, I am encountering the exact same problem as mentioned by Lucas in one the earlier threads : msql db_name -U user_name -h localhost *works* * * import psycopg2 psycopg2.connect *works* * * python web2py.py -S app_name DAL(...) works too But, still I get error > RuntimeError: Failure to co

[web2py] Postgresql: a request

2012-03-14 Thread Johann Spies
I could not get a pg8000 connection to work (see another email) so what I am writing involves only the psycopg2 driver. It might be the same for pg8000. At the moment it seems necessary to duplicate in the python code what the database is doing when using constraints. Example: I have several t

[web2py] Postgresql query using trgm-indexing (fuzzy search option)

2011-12-08 Thread Johann Spies
How would one translate the following query into DAL - or should I use executesql (I would like to use the query in SQLFORM.grid): select B.title, A.title, similarity(A.title, B.title) from us2006_2010 B left join akb_articles A on (A.title % B.title) where B.id in (select A.id

Re: [web2py] PostgreSQL names case sensitivity

2011-11-27 Thread Johann Spies
On 27 November 2011 16:28, Alan Etkin wrote: > psycopg2.ProgrammingError: relation "debugging_id_seq" does not exist Maybe a typo somewhere where debugging_id_seq should be debugging.id_seq? Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise

[web2py] PostgreSQL names case sensitivity

2011-11-27 Thread Alan Etkin
Hi, I am trying to use PostgreSQL DAL interface with my project, but i'm having trouble with table references and insert/update/delete commands. The system info: OS: GNU/Linux, web2py 1.99.2, PostgreSQL 8.4 I have tried the workaround posted by pbreit for a very similar problem: http://groups.goo

[web2py] Postgresql-problem when deleting fields

2011-10-11 Thread Johann Spies
I have changed the model of a populated table (removing two fields with uuid-type references to other tables). Now when I restart web2py the process never becomes ready. In the Postgresql-log I see: 2011-10-11 12:24:13 SAST LOG: could not receive data from client: Connection reset by peer 2011-

[web2py] postgresql DAL connection issue with Enforced SELinux

2011-09-27 Thread lucas
hello one and all, i have a thread down below and after much to do and getting no where fast with db = DAL('postgres://postgres:passwd@localhost/prac2') because permission was denied over and over no matter what i did. here is the previous post http://groups.google.com/group/web2py/browse_thread/

Re: [web2py] postgresql DAL connection issue

2011-09-25 Thread Mariano Reingart
Can you test: #python2.6 >import psycopg2 >psycopg2.connect(database="prac2", user="postgres", password="password", >host="localhost") Maybe the server is down, you have a firewall issue or your pg_hba.conf is not open for localhost connections: hostall all 127.0.0.1

[web2py] postgresql DAL connection issue

2011-09-25 Thread lucas
hello one and all, i am having difficultly connecting postgres 9.1 under web2py v1.98.2 on a centos 6.0 box which has python 2.6.5. i have psycopg2 2.4 installed and working in python when i run the test #python2.6 web2py -S welcom -N -a 'password' then >import psycopg2 > works just fine. howe

Re: [web2py] PostGresql

2011-09-12 Thread David
On 9/13/11 1:43 AM, Web2Py Freak wrote: Dear All , i want to use PostGresql , now after i download it , what to do so it can work with web2py ?? How about install the postgres driver? pip install psycopg Then next time you run web2py you should see the driver is loaded then change your db

[web2py] PostGresql

2011-09-12 Thread Web2Py Freak
Dear All , i want to use PostGresql , now after i download it , what to do so it can work with web2py ??

[web2py] Postgresql 9.0 problem.

2011-08-17 Thread annet
Today I upgraded to Postgresql 9.0 and web2py 1.98.2 (on Mac OS X Snow Leopard). To test the environment I created a Login Role and Database in pgAdmin III and entered the following connection string in db.py: db = DAL('postgres://myusername:mypassword@localhost:5432/mydatabase') Now, when I star

[web2py] postgresql - define tables that reference other tables not yet defined

2011-06-12 Thread Carlos
Hi, I need to be able to define tables that reference other tables not yet defined (because of the order in which define_table is called). Something like the following (simplified for this discussion): db.define_table(x'table1', Field('xtest'), Field('xref2', 'reference table2')) db.de

Re: [web2py] Postgresql database schema

2011-05-30 Thread Johann Spies
On 30 May 2011 12:14, Massimiliano wrote: > Existing tables are divided on different database schemas (not only > public). > > Now I want to rewrite a single application that use existing tables on > schema "xyz". > > Does web2py support that? > > I could not get DAL to work with that(different

[web2py] Postgresql database schema

2011-05-30 Thread Massimiliano
Hi all, I've a legacy enterprise application that use postgresql as database. Existing tables are divided on different database schemas (not only public). Now I want to rewrite a single application that use existing tables on schema "xyz". Does web2py support that? Thank you -- Massimiliano

[web2py] PostgreSQL Error "SELECT DISTINCT, ORDER BY expressions must appear in select list"

2011-04-03 Thread fuga
web2py generate SQL that PostgreSQL doesn't accept. For instance, SELECT DISTINCT a.id, a.uid, a.name FROM a, b WHERE a.deleted <> 'T') AND (a.id > 0)) AND (((b.deleted <> 'T') AND (b.id > 0)) AND (b.id = 1))) AND (b.uid = a.uid)) ORDER BY b.id, a.id LIMIT 1 OFFSET 0; It fails because select

[web2py] Postgresql auth_user_id_seq already exist . Urgent!!!

2011-02-13 Thread Ovidio Marinho
Personally, I gave up after many tests, I decided to return the installation of 189.6 andeverything works normally, a problem with the new DAL in relation to postgresql. -- Ovidio Marinho Falcao Neto ovidio...@gmail.com Tecnologia da Informaçao Casa Civil do

Re: [web2py] postgresql error ... (relation "auth_user" already exists)

2011-02-04 Thread Tom Atkins
(PS I have tried auth.define_tables(migrate='False') and it doesn't help) On 4 February 2011 13:22, Tom Atkins wrote: > I am getting the same error as reported by Carlos and cannot fix it. > > I have just set up a new server (Ubuntu 10.04 - postgres 8.4, Python 2.6.5) > and have web2py trunk up

Re: [web2py] postgresql error ... (relation "auth_user" already exists)

2011-02-04 Thread Tom Atkins
I am getting the same error as reported by Carlos and cannot fix it. I have just set up a new server (Ubuntu 10.04 - postgres 8.4, Python 2.6.5) and have web2py trunk up and running fine. I have an unmodified 'welcome' app which runs perfectly with sqlite. I then delete all the files in database

[web2py] PostgreSQL notifications with Psycopg2 and Eventlet

2010-12-01 Thread mdipierro
http://initd.org/psycopg/articles/2010/12/01/postgresql-notifications-psycopg2-eventlet/

[web2py] postgresql error ... (relation "auth_user" already exists)

2010-11-12 Thread Carlos
Hi, I'm getting the following error in my local installation with postgresql when using auth.define_tables(migrate=True): (relation "auth_user" already exists) web2py™ Version 1.89.1 (2010-11-12 15:14:36) Python Python 2.6.4: C:\Python26\python.exe Traceback (most recent call last): File "C:

[web2py] PostgreSQL replication

2010-11-11 Thread ron_m
Any of you have experience with Bucardo or pgpool-II as a replication add-on? Some background: I switched from MySQL to PostgreSQL very cleanly using web2py as the vehicle. Sort description to document the process: Made a copy of the app, removed the content of the databases directory, added the p

Re: [web2py] PostgreSQL super slowdowns

2010-10-29 Thread Johann Spies
On 29 October 2010 08:53, Chris wrote: > Hey, > > I've noticed some serious slowdowns ever since I switched from SQLite > to Postgres. Pages will take MINUTES to load - it's kind of > fascinating. > I have been using both SQLITE and Postgresql (sometimes with the same content) and did not notice

[web2py] PostgreSQL super slowdowns

2010-10-28 Thread Chris
Hey, I've noticed some serious slowdowns ever since I switched from SQLite to Postgres. Pages will take MINUTES to load - it's kind of fascinating. I don't have the full explanation for what's going on yet but I do have some clues. I've noticed it happens locally, and in a specific way: 1) I loa

[web2py] Postgresql databavse.schema

2010-10-04 Thread Johann Spies
I want to use a legacy database. In Postgresql I access it as A.b.c where A is the database, b is the schema and c is where the tables are.sql Here is an example of the sql that created one of the original tables: CREATE TABLE kbase.institution ( id integer NOT NULL, "name" character varying

[web2py] postgresql 9

2010-09-20 Thread mdipierro
http://www.postgresql.org/about/news.1235

Re: [web2py] postgresql connection problem -

2010-05-27 Thread Julius Minka
I found something in the archive. This seems to be multiple python versions issue, but still do not have a solution. Unfortunately, this server is preinstalled with python2.4 and I am trying to use 2.6, which can't be probably found under mod_wsgi Julius V Štvrtok, 27. máj 2010 o 12:54 +0200, Jul

Re: [web2py] postgresql connection problem -

2010-05-27 Thread Julius Minka
I was too fast. It works when accessed on port. It doesn't when accessed through mod_wsgi: File "gluon/sql.py", line 3835, in DAL migrate=migrate, fake_migrate=fake_migrate) File "gluon/sql.py", line 959, in __init__ self._pool_connection(lambda : psycopg2.connect(msg)) File "gluon/sq

Re: [web2py] postgresql connection problem - SOLVED

2010-05-27 Thread Julius Minka
I found the reason by removing exception catching when connecting to Postgres in gluon/sql.py. It told me that this line self._execute("SET standard_conforming_strings=on;") is a problem. I commented it out and everything is fine until now. Can this removal have a side effect? Julius V Št

Re: [web2py] postgresql connection problem

2010-05-27 Thread Julius Minka
I did that as first thing. No luck. I changed it to IP as I it works from command line. Julius V Streda, 26. máj 2010 o 19:41 -0500, Thadeus Burgess napísal(a): > Try > > postgres://w2p:passw...@localhost:5432/w2p > > -- > Thadeus > > > > > > On Wed, May 26, 2010 at 5:17 PM, Julius Minka

Re: [web2py] postgresql connection problem

2010-05-26 Thread Thadeus Burgess
Try postgres://w2p:passw...@localhost:5432/w2p -- Thadeus On Wed, May 26, 2010 at 5:17 PM, Julius Minka wrote: > This is virtual server with centos 5.5 in internet. > I have successfully instaled web2py with Apache and mod_wsgi based > mainly on instructions from > http://web2py.com/AlterEg

[web2py] postgresql connection problem

2010-05-26 Thread Julius Minka
This is virtual server with centos 5.5 in internet. I have successfully instaled web2py with Apache and mod_wsgi based mainly on instructions from http://web2py.com/AlterEgo/default/show/239 and http://web2py.com/AlterEgo/default/show/240 Probably last step is missing. I am getting this error wh

Re: [web2py] Postgresql Schema in Web2py

2010-05-14 Thread Russ Ferriday
*IF* you determine that web2py is too hard to integrate with your system... You might look at repoze.BFG. It's a python-based framework that inherits some of the best features of Django and Pylons, and can integrate with "any" (R)DBMS or ORM, quite easily. Good luck with your project, -r. On

[web2py] Postgresql Schema in Web2py

2010-05-14 Thread Jean6uy
Hi, I googled a lot on this topic before send this email. I am kind of postgresql newbie and of course also with web2py. I have already designed a database with PGAdminIII that respond to my need that has already around 50 tables with many foreign key relationship. I use schemas to group my tabl

[web2py] Postgresql connection from Jython not working for me

2010-04-08 Thread JC11
The next Jython challenge ! The line: db = DAL('postgres://stubo:st...@10.220.17.77/stubo_remote', pool_size=10) works fine when running in python, but fails from Jython (see below). >From Jython I can run: 'from com.ziclix.python.sql import zxJDBC', so I think that is installed OK Tracebac

Re: [web2py] Postgresql interface buggy

2010-01-28 Thread Johann Spies
On 28 January 2010 00:15, Thadeus Burgess wrote: > This is most likely a bug, would you be willing to provide more > information on the matter? Example. I have changed the type of a field from string (1024) to 'text'. > > For simplicities sake, drop your tables with the DAL by doing > > db.table

Re: [web2py] Postgresql interface buggy

2010-01-27 Thread Thadeus Burgess
This is most likely a bug, would you be willing to provide more information on the matter? For simplicities sake, drop your tables with the DAL by doing db.table.drop() Then you will have a fresh start when you remove this command. -Thadeus On Wed, Jan 27, 2010 at 3:37 PM, Johann Spies wr

[web2py] Postgresql interface buggy

2010-01-27 Thread Johann Spies
It has happened several times now that I make changes in models/db.py to the structure of a table (e.g. changing the type of a field) and then web2py does not write the changes to the database (Postgresql) and in the end one ends up with a situation that you have to do changed using another interfa

[web2py:16441] Re: web2py + postgresql = connection limit exceeded for non-superusers

2009-02-17 Thread Timothy Farrell
;> >>>>>> web2py closes connections automatically when a thread ends unless you >>>>>> have pools. >>>>>> >>>>>> Massimo >>>>>> >>>>>> On Feb 15, 2:19 am, Fran wr

[web2py:16391] Re: web2py + postgresql = connection limit exceeded for non-superusers

2009-02-16 Thread ionel
onalError: FATAL:  connection limit exceeded for > > > > > > > non-superusers > > > > > > > Do I need to close the connection explicitly somewhere? > > > > > > > Interesting, someone previously had the same kind of problem with > > > &g

[web2py:16360] Re: web2py + postgresql = connection limit exceeded for non-superusers

2009-02-15 Thread mdipierro
AL:  connection limit exceeded for > > > > > > non-superusers > > > > > > Do I need to close the connection explicitly somewhere? > > > > > > Interesting, someone previously had the same kind of problem with > > > > > MySQL which they

[web2py:16358] Re: web2py + postgresql = connection limit exceeded for non-superusers

2009-02-15 Thread Baron
someone previously had the same kind of problem with > > > > MySQL which they fixed by moving to > > > > PostgreSQL:http://groups.google.com/group/web2py/browse_thread/thread/7019f65977... > > > > > For the issue to get fixed, I imagine that people would ne

[web2py:16351] Re: web2py + postgresql = connection limit exceeded for non-superusers

2009-02-15 Thread mdipierro
need to close the connection explicitly somewhere? > > > > Interesting, someone previously had the same kind of problem with > > > MySQL which they fixed by moving to > > > PostgreSQL:http://groups.google.com/group/web2py/browse_thread

[web2py:16348] Re: web2py + postgresql = connection limit exceeded for non-superusers

2009-02-15 Thread ionel
se the connection explicitly somewhere? > > > Interesting, someone previously had the same kind of problem with > > MySQL which they fixed by moving to > > PostgreSQL:http://groups.google.com/group/web2py/browse_thread/thread/7019f65977... > > > For the issue to get

[web2py:16341] Re: web2py + postgresql = connection limit exceeded for non-superusers

2009-02-15 Thread mdipierro
by moving to > PostgreSQL:http://groups.google.com/group/web2py/browse_thread/thread/7019f65977... > > For the issue to get fixed, I imagine that people would need to know: > (1) The exact versions of Web2Py/PostgreSQL/Python > (2) Your code > > F --~--~-~--~~---

[web2py:16339] Re: web2py + postgresql = connection limit exceeded for non-superusers

2009-02-15 Thread Fran
: http://groups.google.com/group/web2py/browse_thread/thread/7019f659773ac62a For the issue to get fixed, I imagine that people would need to know: (1) The exact versions of Web2Py/PostgreSQL/Python (2) Your code F --~--~-~--~~~---~--~~ You received this message because y

[web2py:16338] web2py + postgresql = connection limit exceeded for non-superusers

2009-02-14 Thread ionel
Hello everyone, I have this error: Traceback (most recent call last): File "gluon/restricted.py", line 62, in restricted exec ccode in environment File "/home/web2py/site/web2py/applications/docs/models/db.py", line 1, in db=SQLDB('postgres://user:p...@localhost:5432/db1') File "g