473,574 Members | 5,873 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.
6
19,903
thread by: Denis Zaitsev | last post Nov 23 '05 by: Michael Fuhr
How can I calculate the number of second in some interval? Neither the secods part, nor the seconds after midnight... Just the full quantity of the seconds. I haven't find any function. Thanks in advance. ---------------------------(end of broadcast)--------------------------- TIP 7: don't forget to increase your free space map settings
27
20,031
thread by: Aurangzeb M. Agha | last post Nov 22 '05 by: Aurangzeb M. Agha
I'm running Postgres 7.1.3, and just started having a problem where my dynamic site is going down (read-only DB, with no writes happening to the DB) regularly (every other day). I have no idea whay this is happening, and my search of the FAQ's and mail list don't bring up anything. i've attached the error from the log file, at the end of...
2
21,169
thread by: Campano, Troy | last post Nov 22 '05 by: Tom Lane
Hi, I'm trying to compare a timestamp to current_timestamp but I'm having trouble. I want to compare just the date piece of my timestamp column to just the date piece of current_timestamp. I'm getting weird results that I don't understand. When I use TO_DATE it changes the year, month, etc. Any ideas?
3
21,184
thread by: osman7king | last post Sep 20 '11 by: hikmat
I want to import a schema from database to another, how can I do that? Thanks.
3
21,385
thread by: Russ Schneider | last post Nov 22 '05 by: scott.marlowe
Is there an easy way to pipe a select statement's output to a file? -- http://www.sugapablo.com <--music ] http://www.sugapablo.net <--personal ] sugapablo@12jabber.com <--jabber IM ] ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives?
12
21,499
thread by: Relaxin | last post Nov 11 '05 by: Dennis Gearon
Is there a way to make Postgresql case-INSENSITIVE? Thanks
7
21,738
thread by: artistlikeu | last post Jan 4 '07 by: michaelb
Dear all, i have a column with data type array with variable size ...... e.g number = i want to access the last element of this array....... i accessed the first element by following statement.... select * from student where number = this worked fine....
9
21,862
thread by: Shree111 | last post Dec 15 '07 by: rski
i want to append the string which is present in the stored pocedure to SQL query CREATE OR REPLACE FUNCTION sample(fid varchar,ioffset int) RETURNS SETOF totaltype AS $$ DECLARE s totaltype %ROWTYPE; SQL_Tx_Type VARCHAR(4000);
2
21,894
thread by: Alvar Freude | last post Nov 12 '05 by: Alvar Freude
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I want to change a column from text to bytea; since it seems that alter table can't change the column type, i have to add a temporary column and copy the data from the old one to the new, delete the old and rename the new.
4
22,184
thread by: smurphy811 | last post Apr 2 '07 by: nmadct
I am creating a C# .NET application that uses a postgreSQL database that is on my machine locally. My problem is that I cannot figure out how to write the connectionString. I have searched the internet for the past 30 minutes trying everything I could find. Help? anyone? public class Connection { protected static SqlConnection...
8
22,249
thread by: crs27 | last post Aug 7 '07 by: michaelb
Hai, can anyone tel me what dose this error mean. 'more' is not recognized as an internal or external command, operable program or batch file.
1
22,823
thread by: edwige | last post Sep 13 '07 by: rski
I just installed PostgreSQL on ubuntu linux. the installer does everything for, but I try to use "createuser" I get this message: { FATAL: role "root" does not exist } I have tried different suggestions from the Net, nothing seems to work. How do I correct the problem?
3
22,848
thread by: K. Deepa | last post Nov 22 '05 by: Rajesh Kumar Mallah
Hi all, I am using postgresql7.4. How to handle arrays in plpgsql. How can I pass an array. Is it possible to retrieve values from an array by indexing it like argument : '{1,2,3}' Return value : varchar array Variables : ---------
4
22,966
thread by: Caroline Yong | last post Nov 11 '05 by: Nigel J. Andrews
Is there a way to replicate one-off(a copy of duplicate) of an existing Postgres database. regards, caroline __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
4
23,030
thread by: mattdoughty | last post Aug 13 '10 by: srikanth2254
Hi Forum, I'm trying to perform a type of concatenate function on a table and am not really sure where to start. I'd like to aggregate the values from 'field' on their ID. To explain, my table is like this: ID roadnum 1 A-1 2 B-1 2 E-1 3 N-1 4 N-3
2
23,687
thread by: ajay | last post Jul 19 '05 by: Matt Emmerton
How to write a single update sql statement to update different set of attributes of a table. In other words what will be the value of indicator variables to ignore updates of some attributes in a update statement. e.g. EXEC SQL UPDATE vA:iA vB:iB vC:iC in TABLE 1 where vD = ...
7
24,039
thread by: shweta gandhi | last post May 10 '07 by: nlshriraam
Someone know how to create database in postgreSQL through Java code? How to check particular database exist or not in postgreSQL through java code?
3
24,281
Chittaranjan
thread by: Chittaranjan | last post Mar 1 '08 by: rski
Hi All, I am not sure how to change the date format in PostgreSQL. I have the dates stored in the database as yyyy-mm-dd HH:MM:SS+TimeZone to get the GMT time (Ex: 2008-02-28 14:03:23+05:30). But I want these dates to be shown in the following format: dd/mm/yyyy HH:MM:SS TimeZone (Ex: 28/02/2008 14:03:23 IST)So now while I am trying to fetch...
1
24,552
thread by: somaskarthic | last post Aug 23 '06 by: masdi2t
Hi In postgresql database how to retrieve the date in a required format ? Is ther any method to retrieve the stored date value in mm/dd/yyyy format. I don't want to set the date format in postgres databse . Whatever format the date value stored , is there any method to retrieve the date in any required format ? Pls post your replies Thank...
1
24,804
thread by: Adam726 | last post Feb 16 '22 by: Thierry42
I am using postgresql 10, and when I created a table with two variables, the lock signs(shows read-only column) were shown on the columns. I am not sure if it is a reason that makes me can not import csv file into table. if so, how can I remove that? https://i.stack.imgur.com/kIiRX.png
12
25,246
thread by: Bill Moran | last post Nov 23 '05 by: Tom Lane
Hey all. I've hit an SQL problem that I'm a bit mystified by. I have two different questions regarding this problem: why? and how do I work around it? The following query: SELECT GCP.id, GCP.Name FROM Gov_Capital_Project GCP,
1
25,848
thread by: monkeyxu | last post Oct 26 '07 by: rski
Hi, all I am new for psql and here is my problem. I created a new psql user with no superuser no role creation and no DB creation. So when the new user tries to query a table and got: postgis_test_db=> SELECT vessel_name, time, position FROM current_position; postgis_test_db=> ERROR: permission denied for relation current_position Any...
1
26,191
thread by: Dan | last post Jul 19 '05 by: Dan
I have a server under very light load -- just me doing some work in php. I am getting this error often and don't know why: postgresql max connections Unable to connect to PostgreSQL server: FATAL: Sorry, too many clients already my postgresql.conf had: max_connections = 8 shared_buffers = 16
4
26,566
thread by: Bogdan Chytrek | last post Nov 12 '05 by: Chris Travers
Why happens this? Warning: pg_connect() unable to connect to PostgreSQL server: FATAL: IDENT authentication failed for user "bchytrek" in /var/www/html/physio2/test.php on line 19 The php-statement is : $conn = pg_connect("dbname=testdb user=bchytrek");
3
26,639
thread by: MaRCeLO PeReiRA | last post Nov 23 '05 by: Gaetano Mendola
Hi guys, How can I know about the number of active connections?? (not the maximum allowed, but the number of open connections). Regards, Marcelo Pereira Brasil

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.