to the client,
written to the server log, or both is controlled by the log_min_messages
and client_min_messages configuration variables. See Chapter 18 for more
information.
--
Milen A. Radev
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http
is function overloading
(http://www.postgresql.org/docs/current/static/xfunc-overload.html).
--
Milen A. Radev
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
for Working with binary data and bytea datatype.
--
Milen A. Radev
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
://www.postgresql.org/docs/current/static/libpq-envars.html (look
for PGPASSWORD).
--
Milen A. Radev
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
. Client Authentication
(http://www.postgresql.org/docs/current/static/client-authentication.html)
for details.
--
Milen A. Radev
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
need TO_CHAR
(http://www.postgresql.org/docs/current/static/functions-formatting.html)
- SELECT to_char(current_date, 'Dy').
--
Milen A. Radev
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
, relations
(tables, views, indexes, sequences, large objects), rules, and
triggers.' (http://www.postgresql.org/docs/8.2/static/app-psql.html,
look for \dd).
You could see the comment for the column with \d+ table_name.
--
Milen A. Radev
---(end of broadcast
res x%ROWTYPE;
BEGIN
if $1 THEN
RETURN NEXT res;
ELSE
RETURN;
END IF;
END;$_$
LANGUAGE plpgsql;
--
Milen A. Radev
---(end of broadcast)---
TIP 7: You can help support the PostgreSQL project by donating
--
Milen A. Radev
---(end of broadcast)---
TIP 7: You can help support the PostgreSQL project by donating at
http://www.postgresql.org/about/donate
: INSERT INTO $1 (some_field) VALUES('some_value')
Any hints on how to use function-parameters as table-names like I'm trying to
above?
Use EXECUTE
(http://www.postgresql.org/docs/current/static/plpgsql-statements.html#PLPGSQL-STATEMENTS-EXECUTING-DYN).
--
Milen A. Radev
a quick solution. Does anyone have any suggestions?
Use to_char(int, text), details here -
http://www.postgresql.org/docs/current/static/functions-formatting.html
--
Milen A. Radev
---(end of broadcast)---
TIP 2: Don't 'kill -9' the postmaster
this in the same session where I
add/remove records.
Why do you need to know that? I can't think of any reason.
[...]
--
Milen A. Radev
---(end of broadcast)---
TIP 5: don't forget to increase your free space map settings
#DATATYPE-FLOAT)
:
- If you require exact storage and calculations (such as for monetary
amounts), use the numeric type instead.
So if you decide to use floats after this warning you are on your own.
--
Milen A. Radev
---(end of broadcast)---
TIP
.
--
Milen A. Radev
---(end of broadcast)---
TIP 6: explain analyze is your friend
. But for the create table i get
ERROR: syntax error at or near nextval at character 38
What should i do?
Add the missing default:
CREATE TABLE mytable
(
n_gen int DEFAULT nextval('seq_mytable_n_gen'),
mycolumn1 int,
mycolumn2 int
);
--
Milen A. Radev
-sensitive, whereas
unquoted names are always folded to lower case.
--
Milen A. Radev
---(end of broadcast)---
TIP 7: You can help support the PostgreSQL project by donating at
http://www.postgresql.org/about/donate
setof text as $$
milen$ declare
milen$ a record;
milen$ begin
milen$ select into a now() - interval '$1 day';
milen$ return next a;
milen$ return;
milen$ end
milen$ $$ language 'plpgsql';
CREATE FUNCTION
milen=
No problems here. What version are you using?
--
Milen A. Radev
Richard Ray написа:
On Tue, 19 Dec 2006, Milen A. Radev wrote:
Richard Ray :
How should this be properly quoted
create or replace function test(integer) returns setof text as $$
declare
a record;
begin
select into a now() - interval '$1 day';
return next a;
return
this problem. Anyone with more knowledge that can point me
in
the right direction?
Look here for add_missing_from -
http://www.postgresql.org/docs/8.1/static/runtime-config-compatible.html#RUNTIME-CONFIG-COMPATIBLE-VERSION
--
Milen A. Radev
---(end of broadcast
the MAC Address. Is it possible ?
No - the client and the server communicate using TCP/IP as
transport/internet layer but that does not mean they use Ethernet as
network access layer.
--
Milen A. Radev
---(end of broadcast)---
TIP 2: Don't 'kill -9
in
C). I was mainly looking for example showing how to refer 'OLD' and 'NEW'
rows using PL/pgSQL.
Can someone please direct me to some such examples?
http://www.postgresql.org/docs/8.1/static/plpgsql-trigger.html
--
Milen A. Radev
---(end of broadcast
)
?
--
Milen A. Radev
---(end of broadcast)---
TIP 6: explain analyze is your friend
/plpgsql-statements.html#PLPGSQL-STATEMENTS-DIAGNOSTICS
--
Milen A. Radev
---(end of broadcast)---
TIP 6: explain analyze is your friend
-gnu, compiled by GCC gcc (GCC)
3.4.2 20041017 (Red Hat 3.4.2-6.fc3) /
How many days are there in a month?
--
Milen A. Radev
---(end of broadcast)---
TIP 5: don't forget to increase your free space map settings
Milorad Poluga написа:
On Saturday 18 February 2006 15:24, Milen A. Radev wrote:
Milorad Poluga написа:
Hi all,
Is there something incorrect in the above query ?
SELECT '10 years 1 mons 1 days'::interval - '9 years 10 mons 15
days'::interval
?column?
---
3 mons
of
add_missing_from setting
(http://www.postgresql.org/docs/8.1/static/runtime-config-compatible.html#RUNTIME-CONFIG-COMPATIBLE-VERSION).
--
Milen A. Radev
---(end of broadcast)---
TIP 1: if posting/reading through Usenet, please send an appropriate
is there
because the count of the languages.
Any ideas for simpler and more universal query?
Please CC me, because I'm not subscribed.
--
Milen A. Radev
---(end of broadcast)---
TIP 3: Have you checked our extensive FAQ?
http
27 matches
Mail list logo