| |
thread by: Chris Ochs |
last post Nov 22 '05 by: Richard Huxton
The documentation doesn't have any examples of using an sql language
function to do an insert, andI am at loss as to I am doing wrong here.
The error I get trying to create the function is: ERROR: syntax error at
or near "$1" at character 148
CREATE FUNCTION taxship(varchar,integer,varchar,float,float) returns integer
AS '
insert into...
|
thread by: harvindersingh |
last post Apr 9 '09 by: harvindersingh
Hello
I am developing an application that requires PostgreSQL connection, I have installed PostgreSQL on my development machine and using NpgSQL to connect to the database. I am able to connect to the database while the application is running on the development PC, but whenever I am on any other PC on my network I cannot connect the application...
|
thread by: anuragpj |
last post Jan 17 '07 by: michaelb
how to insert image in a table in pgsql database.
|
thread by: Daron |
last post Nov 23 '05 by: Daron
Hi,
Can anyone suggest any websites that might help with connecting
visual studio dot net (I would like to see it running using server
explorer if possible) to postgresql. I am planning to write some
client applications in VB or C#.
Regards,
Daron.
|
thread by: Josh Close |
last post Nov 23 '05 by: Gaetano Mendola
Is there a way to remove idle connections? My postgres server is
getting serveral hundred idle connections. It's due to a postgres .NET
provider not closing the connections properly. I don't want to kill
them all, or restart postgres everytime the connections go crazy.
-Josh
---------------------------(end of...
|
thread by: Dr NoName |
last post Nov 12 '05 by: Greg Stark
Help!
I have a table that multiple processes must be able to
write to concurrently. However, it for some reason
gets locked in exclusive mode. I narrowed it down to
one SQL statement + some weirdness with foreign keys.
To debug this, I opened two psql sessions and typed in
the sql statements manually. Here is the situation:
CREATE TABLE...
|
thread by: nehashri |
last post Mar 2 '07 by: michaelb
I am trying to insert a large object into my dbs
using: INSERT INTO table VALUES (lo_import ( ' z/image/image.jpg ' ));
but i get the message saying that I need superuser privilidges to do it and that I should use client-side
\lo_import command.
Does anyone know how to use that command? And what is the syntax for \lo_import and export...
|
| |
thread by: Grainne Reilly |
last post Nov 23 '05 by: Chris Travers
I am new to PostgreSQL and am porting some scripts written for MySQL over
to psql. There is one MySQL feature which I cannot find in psql - user
defined SQL variables. In MySQL I can use these to hold the result
(numeric, string or null) of a select: e.g.
select @count = count(*) from mytable;
The @count variable now holds the result of that...
|
thread by: Janning Vygen |
last post Nov 23 '05 by: Christopher Browne
Hi,
i am testing a few queries in my postgresql DB. The first query after reboot
is always slower because of an empty OS page/file cache.
I want to test my queries without any files in the linux kernel cache, just to
know what would be the worst execution time. At the moment i stop postgresql
and do something like
find / -name foo
|
thread by: ruben20 |
last post Nov 23 '05 by: Tom Lane
Hi:
I've migrated a couple of weeks ago from 7.4.2 to 7.4.5 and I am getting
this error after executing a query:
Warning: pg_exec() query failed: ERROR: could not access status of
transaction 4244329 in /home/wisconsin/www/_proc/bbdd/_c_bbdd.php on
line 160
ERROR ACCESO BASE DE DATOSERROR: could not access status of
transaction 4244329
|
thread by: codepirate |
last post May 24 '07 by: codepirate
Hi All,
I am trying to connct to a serverless/embedded PostgreSQL database from a C# application using VS 2005. First of all, is this possible with PostgreSQL? I know this can be done with some other database providers (sqllite?). If anyone has connected to such a database using some other method/language I'd be greatful for the information.
...
|
thread by: jlm699 |
last post Jan 11 '08 by: jlm699
I'm at the end of my wits here and can't possibly see what I'm doing wrong.
I tried doing a "COPY (query) TO '/var/tmp/filename.csv' WITH CSV", which gave me an error. So I tried it w/o the WITH CSV... same error. I tried the query by itself which worked. As soon as I add the parenthesis and the COPY TO stuff I get the following error:
...
|
thread by: ntech |
last post Dec 14 '07 by: Rendladas
hi,
This is the error that we are getting on postgresql. The error is as follows:
current transaction is aborted. queries ignored until end of the transaction block.
What might be the real cause of the problem and how do we rectify it?
Any suggestions will be appreciable.
|
thread by: Mark Gibson |
last post Nov 23 '05 by: Jan Wieck
Hello,
I've just encountered a problem that I don't know how to deal with.
After having a play with SlonyI, I dropped the entire slony cluster
schema, and then tried to drop a schema which held some slave tables
for the slony cluster.
I kept getting the following error:
ERROR: cache lookup failed for relation 4667548
|
thread by: Jeff Boes |
last post Nov 11 '05 by: Martijn van Oosterhout
What might be the source of this error?
Cache lookup failed for relation 188485009
We've been getting these at odd intervals, and they are not reproducible.
Our setup:
PostgreSQL 7.3.3
Red Hat 7.3
|
| |
thread by: eros |
last post Aug 1 '07 by: michaelb
ALTER TABLE public.postcodes
ALTER COLUMN machi
TYPE varchar(100);
Error: ERROR: syntax error at or near "TYPE";
Error while executing the query (State:42601, Native Code: 7)
I am using WinSQL, Windows XP SP2 Japanese Version, PostgreSQL 8.x.
I want to alter my machi field from varchar(30) to varchar(100) TYPE.
This is my CREATE...
|
thread by: Goutam Paruchuri |
last post Nov 23 '05 by: Sim Zacks
Iam trying to import data from ms-sql server to postgres. I export the
data which has datetime columns in sql server using BCP. I use the
following to import back into postgres.
copy tablename from 'c:\\bcpdata\\mcfa\\tablename.txt' with delimiter as
'\t'
I get the following error !!
invalid input syntax for type timestamp: ""
|
thread by: Jeffrey W. Baker |
last post Nov 23 '05 by: Tom Lane
Today I tried to move a database and got this error, which I gather is
very rare (also undocumented):
postgres: FATAL: incorrect checksum in control file
I moved the database from a 32-bit arch to a 64-bit arch. All I did was
shutdown a 7.4.1 database, shutdown the machine, swap the storage onto
the 64-bit machine running 7.4.5, and...
|
thread by: Bob Powell |
last post Nov 22 '05 by: Bruce Momjian
To whom it may concern:
I find the recent articles in various trade publications a little
disturbing due to the lack of PostgrSQL mention. I continue to see
articles about how IBM may be considering MYSQL for development an
open_source web database.
Why isn't PostgreSQL being considered or talked about by major industry
giants? As a...
|
thread by: Ying Lu |
last post Nov 23 '05 by: Alvaro Herrera
Hi,
I have a question about alter a column's type in a postgreSQL table.
For example, I have 10, 000 records in a table name "test", I'd like to
change column "machineID" type from integer to varchar. I am looking for
something like:
alter table test alter column machineID ... ... varchar
|
thread by: Vladimir M |
last post May 6 '07 by: michaelb
Hi
I am writing a function with PL/pgSQL, which returns result of some complex query with several tables. In manual i found such example:
CREATE OR REPLACE FUNCTION Test() RETURNS SETOF table1 AS $$
DECLARE ret_row RECORD;
BEGIN
FOR ret_row IN SELECT * FROM table1 LOOP
RETURN NEXT ret_row;
|
thread by: aardvark |
last post Sep 30 '10 by: xportage
I need to access the structure of a table in a python script, so \d is not available -- I need to access the structure of a table using sql commands. (Also, \d is not working from psql anyway, because my workstation has the postgresql 8.2 client, while the server is running postgresql 7.4.)
In sqlite, for all tables, this is easy:
SELECT *...
|
thread by: Daniel Schuchardt |
last post Nov 11 '05 by: Daniel Schuchardt
Hi @ all,
i'm sure there was a psql-function to transfere my Blob-Data to the
server but I can't remember.
I have a script like this :
UPDATE xy SET z = lo_import('localpath_and_file');
but i want to execute this script from the client and so my blob-data is
|
| |
thread by: mndprasad |
last post Feb 27 '08 by: mndprasad
Hi,
I made a blunder mistake..i have deleted some 100 rows from my table in postgres and that is very important in my project..pls give me a solution how to recover those deleted data ..i dont have any dump of that table....
thanks in advance
|
thread by: Armen Rizal |
last post Nov 23 '05 by: Armen Rizal
Hello all,
Is there anybody know where I can find reusable pl/pgsql samples or function
library ?
Thanks,
Armen
|