473,550 Members | 2,589 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PostgreSQL Database Forum

PostgreSQL ORDBMS database - Ask questions about PostgreSQL development, administration replication, clustering, connection pooling, tables, indexes, databases, performance, SQL, queries and more.
1
1,973
thread by: sreekanthkata | last post Oct 6 '10 by: rski
Hi, I am trying to generate a message in function through RAISE NOTICE or RAISE DEBUG. Function runs fine but i can not see the out put message. -- Function: actacladd(text, integer, integer, text, text, text, text) -- DROP FUNCTION actacladd(text, integer, integer, text, text, text, text); CREATE OR REPLACE FUNCTION actacladd(text,...
1
2,829
thread by: osman7king | last post Oct 6 '10 by: rski
hello all... I'm trying to convert the query which uses outer join statment from Oracle to PostgreSQL but I have some problems with this query may some one help me for this problem? SELECT ACT_ACCOUNT.ID_ACCOUNT, ACT_ACCOUNT.CODE_ACCOUNT, ACT_ACCOUNT.NAME_AR, ACT_ACCOUNT.NAME_EN, ACT_ACCOUNT.ACCOUNT_PID, ...
2
9,699
thread by: osman7king | last post Sep 28 '10 by: rski
when I create a user "user1" and give this user the permissions on a database "db1" (including login privilage), this user can access all databases although it doesn't have the privilges (even after implmenting the revoke command). on the other hand, any user can access the database "db1" after login, although I make (revoke all on database db1...
5
3,801
thread by: datactrl | last post Sep 29 '10 by: rski
Can I back up all stored procedures and triggers on a database?
2
2,005
thread by: JonathanSFL | last post Sep 15 '10 by: rski
When i run the command SET search_path TO custom,idsystems, clientdata, configs, replication, structure, archive; then when I run SHOW search_path; it does show those schemas as the search_path. however when i restart the postgresql service, the search_path has reverted to $User, public. when i put the SET search_path function in the...
0
2,180
thread by: ray ho | last post Sep 15 '10 by: ray ho
I am a newbie to linux, postgresql and slony-i. Please forgive me. I encounter some problems while installing slony-i in SUSE. Background: SuSE Enterprise 10 Installed postgresql-8.1.4-1.3 Installed postgresql-devel 8.1.4 Installed
1
8,985
thread by: osman7king | last post Sep 14 '10 by: rski
when I use the statment: "currval('my_seq')" in my function I get the error message like: "currval of sequence "my_seq" is not yet defined in this session" maybe someone explain this problem and give me the solution. best regards.
4
2,910
thread by: osman7king | last post Sep 16 '10 by: osman7king
the problem is: when I create a user "user1" and give the permissions on the database "db1" to it (including login privilage), this user can access to all databases although it doesn't have the privilges (I make revoke ) in other side, any user can access to the database "db1" after login, although I make (revoke all on db1 from public). ...
2
2,546
thread by: JonathanSFL | last post Sep 14 '10 by: JonathanSFL
BEGIN; DROP TYPE structure.format_list2table_rs CASCADE; CREATE TYPE structure.format_list2table_rs AS ( "item" VARCHAR(4000) ); END;
2
2,317
thread by: osman7king | last post Sep 14 '10 by: osman7king
when executing the function as follow: select get_pms_meeting_minute (null) I get the follwing message: set-valued function called in context that cannot accept a set CREATE TABLE pms_meeting_minutes (
2
2,470
thread by: beeth9 | last post Sep 1 '10 by: rski
I've a table of cust ids where one customer can have multiple services (e.g. svc1, svc2, svc3). One cust id record contains one servicename field. So there can be duplicate cust records. e.g. custid servicename ------ ----------- 1 svc1 1 svc2 2 svc3 2 svc4 3 svc1
0
1,930
thread by: chandra7g | last post Aug 12 '10 by: chandra7g
i have enabled these 1. extension=php_pdo_pgsql.dll 2.extension=php_pgsql extensions in php.ini file but i am unable to connect to the database iam facing an error Fatal error: Call to undefined function pg_connect() can any one help me!
2
2,418
thread by: patydsc | last post Aug 3 '10 by: rski
Hi, can anyone help me to figure this out. Currently, i have this code: select t_stamp, num from table where num in
2
8,480
thread by: littlemaster | last post Jul 26 '10 by: littlemaster
Hi, I am having database in debian os. In that sum() giving expected output. I have changed my database from debian to lenny. In that sum() is not available. It shows the following error. Can any one help me to solve this ? user => SELECT cmp_id ,sum(*) as count from schedules group by cmp_id; ERROR: function sum() does not exist LINE 1:...
0
2,002
ekekakos
thread by: ekekakos | last post Jul 24 '10 by: ekekakos
Hello, I want to use inheritance and I have created some tables for a program that I want to use it (see attachment). What is your opinion? Is it better to use the old way or inheritance? If I use inheritance, would it be good to use as PK for all table the ID field of LASTUPDATE table who will be the parent table of all? What is your opinion...
1
2,937
thread by: spnmuthu | last post Jul 24 '10 by: rski
Hello! how to configure the replication in postgres databases please tell step by step configurations Regards, spnmuthu
2
3,041
bansari
thread by: bansari | last post Jul 25 '10 by: Jyoti Ballabh
ERROR: value too long for type character varying(8) ********** Error ********** ERROR: value too long for type character varying(8) SQL state: 22001 I used following script to add a Row: INSERT INTO tbluser(
0
2,123
ekekakos
thread by: ekekakos | last post Jul 8 '10 by: ekekakos
Hello, I am trying to understand inheritance and how to use it with PostgreSQL. For this reason i design a database in the excel file. In the 1st columns you can see the table w/o inheritance while in the 2nd part of the sheet you can see the tables with INHERITANCE. Can you give me your opinion and help on the following? 1. Which is the best...
1
4,217
thread by: indikamaligaspe | last post Jul 18 '10 by: indikamaligaspe
Hi all, I am trying to get a PL/TCL trigger to update an audit table working. The problem is when I create the trigger on an exiting table, I get the following error "ERROR: can't read "tgname": no such variable CONTEXT: can't read "tgname": no such variable while executing ....." If I drop the table and then recreate the table and...
1
6,185
thread by: trieuvi | last post Jul 8 '10 by: rski
I want to create 2 databases in 2 server and these have only one OID. Example: Server 1: database 'Test' with OID: 16384 Server 2: database 'Test' with OID: 16353 I want to edit OID of database Test on server 2 to 16384. How to do that? And how to create a database with fix OID??
1
2,200
thread by: kiranghadge | last post Jun 29 '10 by: rski
Hi all i am trying to write one update query which will update all rows. here i just want to write only one update statement to which i can pass arguments one by one. Is this Possible ??? Can i get count of arguments ???? thanks in advance
1
3,350
thread by: jenwil | last post Jun 28 '10 by: rski
I have a local copnnection with Postgres setup for development on my PC. This has been working for months with the default configuration. I recently set up to access a server and got this error when I tried to connect. I dropped the server and still got the message - I can't now connect to the server at all, and still get the listener message...
1
3,250
thread by: vardhangiri | last post Jun 13 '10 by: rski
Hi , I have an array that need to be split into table columns. Ex: test_array('{"(1,2,3,4,5)","(10,20,30,40,50)"}') test_table col1 col2 col3 col4 col5
1
122,993
thread by: vardhangiri | last post Jun 28 '10 by: rski
HI, Im new to postgresql i have written two procedures.procedure1 takes input from the user array of table objects and loops over them and for each row it calls the second procedure2 where the acutal filling of tables happen. My problem here is if the user passes 10 record and if record 5 fails then all the other records should be posted to...
1
2,197
thread by: sentenza | last post Jun 13 '10 by: rski
Hello everyone When the trigger executes the function which I copy below: IF (TG_OP = 'UPDATE') THEN EXECUTE 'CREATE TABLE '||NEW.nome_tabella||' (ordinativo serial PRIMARY KEY CHECK (nome_tabella = '||NEW.nome_tabella||'::text)) INHERITS (madre);

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.