pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Database access problem : SOS
9+ messages / 4 participants
[nested] [flat]

* Database access problem : SOS
@ 2003-02-03 15:09 mjoseph@inautix.com
  2003-02-07 06:55 ` Re: Database access problem : SOS Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
  0 siblings, 1 reply; 9+ messages in thread

From: mjoseph@inautix.com @ 2003-02-03 15:09 UTC (permalink / raw)
  To: pgsql-general@postgresql.org; pgsql-novice@postgresql.org; pgsql-admin

Hi,
I am new to PostgreSQL. I am running PostgreSQL on top of Cygwin on Windows
NT.
I am able to initialize the database cluster and create template1. I log in
and even create a 'test' table.
But querying it results in the error.

ERROR:  pg_class_aclcheck: invalid user id 1730

Someone please help!
This is the sequence of steps I follow.

mkdir /usr/local/pgsql/data
chown 1730 /usr/local/pgsql/data
ipc-daemon &
initdb -D /usr/local/pgsql/data -U 1730 -W
psql -U 1730 template1

My NT user id is 1730 and I have admin privileges. Like I said earlier, I
am able to login. But I am unable to query any tables.
Anyone out there got any clues?
Regards,
Manoj






^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Database access problem : SOS
  2003-02-03 15:09 Database access problem : SOS mjoseph@inautix.com
@ 2003-02-07 06:55 ` Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
  2003-02-07 14:51   ` Re: Database access problem : SOS Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 9+ messages in thread

From: Shridhar Daithankar @ 2003-02-07 06:55 UTC (permalink / raw)
  To: pgsql-general@postgresql.org

On Monday 03 February 2003 08:39 pm, you wrote:
> mkdir /usr/local/pgsql/data
> chown 1730 /usr/local/pgsql/data
> ipc-daemon &
> initdb -D /usr/local/pgsql/data -U 1730 -W
> psql -U 1730 template1

Total numeric user ids won't work. try an alphabetical one..

Seems to be an FAQ these days..

 Shridhar



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Database access problem : SOS
  2003-02-03 15:09 Database access problem : SOS mjoseph@inautix.com
  2003-02-07 06:55 ` Re: Database access problem : SOS Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
@ 2003-02-07 14:51   ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 9+ messages in thread

From: Tom Lane @ 2003-02-07 14:51 UTC (permalink / raw)
  To: Shridhar Daithankar <shridhar_daithankar@persistent.co.in>; +Cc: pgsql-general@postgresql.org

Shridhar Daithankar <shridhar_daithankar@persistent.co.in> writes:
> On Monday 03 February 2003 08:39 pm, you wrote:
>> psql -U 1730 template1

> Total numeric user ids won't work. try an alphabetical one..

They work again in 7.3.2 ...

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Database access problem : SOS
@ 2003-02-03 15:18 mjoseph@inautix.com
  2003-02-03 15:45 ` Re: Database access problem : SOS Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 9+ messages in thread

From: mjoseph@inautix.com @ 2003-02-03 15:18 UTC (permalink / raw)
  To: pgsql-general@postgresql.org; pgsql-novice@postgresql.org; pgsql-admin


Hi,
I am new to PostgreSQL. I am running PostgreSQL on top of Cygwin on Windows
NT.
I am able to initialize the database cluster and create template1. I log in
and even create a 'test' table.
But querying it results in the error.

ERROR:  pg_class_aclcheck: invalid user id 1730

Someone please help!
This is the sequence of steps I follow.

mkdir /usr/local/pgsql/data
chown 1730 /usr/local/pgsql/data
ipc-daemon &
initdb -D /usr/local/pgsql/data -U 1730 -W
psql -U 1730 template1

My NT user id is 1730 and I have admin privileges. Like I said earlier, I
am able to login. But I am unable to query any tables.
Anyone out there got any clues?
Regards,
Manoj






^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Database access problem : SOS
  2003-02-03 15:18 Database access problem : SOS mjoseph@inautix.com
@ 2003-02-03 15:45 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 9+ messages in thread

From: Tom Lane @ 2003-02-03 15:45 UTC (permalink / raw)
  To: mjoseph@inautix.com; +Cc: pgsql-general@postgresql.org; pgsql-novice@postgresql.org; pgsql-admin

mjoseph@inautix.com writes:
> ipc-daemon &
> initdb -D /usr/local/pgsql/data -U 1730 -W
> psql -U 1730 template1

If this is PG 7.3.*, there are some recently-identified problems with
using all-numeric usernames.  Use a name instead of a number.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Database access problem : SOS
@ 2003-02-04 04:27 mjoseph@inautix.com
  2003-02-04 04:35 ` Re: Database access problem : SOS Tom Lane <tgl@sss.pgh.pa.us>
  2003-02-04 06:27 ` Re: [ADMIN] Database access problem : SOS Justin Clift <justin@postgresql.org>
  0 siblings, 2 replies; 9+ messages in thread

From: mjoseph@inautix.com @ 2003-02-04 04:27 UTC (permalink / raw)
  To: pgsql-general@postgresql.org; pgsql-novice@postgresql.org; pgsql-admin; +Cc: Tom Lane <tgl@sss.pgh.pa.us>


Thanks Tom!
There seems to be something wrong with the cygipc package! I keep getting
this shmget() failure. I am pretty sure that there is enough memory on my
system. The best part is sometimes after reinstalling everything, it
sometimes works.

This is the failure message I get.
-----------------------------------------------------------------
$ postmaster -D /usr/local/pgsql/data -N 4 -B 16
IpcMemoryCreate: shmget(key=5432001, size=589824, 03600) failed: Not enough
core


This error usually means that PostgreSQL's request for a shared
memory segment exceeded available memory or swap space.
To reduce the request size (currently 589824 bytes), reduce
PostgreSQL's shared_buffers parameter (currently 16) and/or
its max_connections parameter (currently 4).

The PostgreSQL Administrator's Guide contains more information about
shared memory configuration.
-----------------------------------------------------------------

The versions I use:
cygipc-1.13-2
postgresql-7.3.1-1
cygwin-1.3.19-1

Can someone help?

I have been having a hard time installing PostgreSQL on Windows NT. I tried
a Native port, the official Windows version (on top of cygwin) and the one
that comes with cygwin. Something or the other is broken in each release. I
am yet to do a successful query till now.

I guess it works better on Unix, considering its popularity.

Regards,
Manoj



                                                                                                                   
                    Tom Lane                                                                                       
                    <tgl@sss.pgh.p       To:     mjoseph@inautix.com                                               
                    a.us>                cc:     pgsql-general@postgresql.org, pgsql-novice@postgresql.org,        
                                          pgsql-admin@postgresql.org                                               
                    02/03/03 09:15       Subject:     Re: [ADMIN] Database access problem : SOS                    
                    PM                                                                                             
                                                                                                                   
                                                                                                                   




mjoseph@inautix.com writes:
> ipc-daemon &
> initdb -D /usr/local/pgsql/data -U 1730 -W
> psql -U 1730 template1

If this is PG 7.3.*, there are some recently-identified problems with
using all-numeric usernames.  Use a name instead of a number.

                               regards, tom lane









^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: Database access problem : SOS
  2003-02-04 04:27 Re: Database access problem : SOS mjoseph@inautix.com
@ 2003-02-04 04:35 ` Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 9+ messages in thread

From: Tom Lane @ 2003-02-04 04:35 UTC (permalink / raw)
  To: mjoseph@inautix.com; +Cc: pgsql-general@postgresql.org; pgsql-novice@postgresql.org; pgsql-admin

mjoseph@inautix.com writes:
> There seems to be something wrong with the cygipc package! I keep getting
> this shmget() failure. I am pretty sure that there is enough memory on my
> system. The best part is sometimes after reinstalling everything, it
> sometimes works.

Did you remember to start the cygipc daemon?

I dunno much about using the cygwin-based port, but I do know that
that's a common gotcha...

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: [ADMIN] Database access problem : SOS
  2003-02-04 04:27 Re: Database access problem : SOS mjoseph@inautix.com
@ 2003-02-04 06:27 ` Justin Clift <justin@postgresql.org>
  1 sibling, 0 replies; 9+ messages in thread

From: Justin Clift @ 2003-02-04 06:27 UTC (permalink / raw)
  To: mjoseph@inautix.com; +Cc: pgsql-general@postgresql.org, Tom Lane <tgl@sss.pgh.pa.us>

mjoseph@inautix.com wrote:
<snip>
> The versions I use:
> cygipc-1.13-2
> postgresql-7.3.1-1
> cygwin-1.3.19-1

Yep, they're all "known good" versions, and what I've been using here.

Out of curiosity, have you asked the guys on the PostgreSQL "cygwin" 
mailing list, as this is pretty much exactly their area of speciality?

One important question, with WinNT, are you definitely running it with 
Service Pack 6a, and it's definitely stable for other packages?

For most installations with Windows, the cygwin version works ok, but 
for you it's obviously not.  Am wondering if it's possible you've got 
some kind of problem with windows not having been updated enough, or 
maybe something is installed that overwrote an important dll?

> Can someone help?
> 
> I have been having a hard time installing PostgreSQL on Windows NT. I tried
> a Native port, the official Windows version (on top of cygwin) and the one
> that comes with cygwin. Something or the other is broken in each release. I
> am yet to do a successful query till now.
> 
> I guess it works better on Unix, considering its popularity.

Yep, it works *really* well on Unix.

:)

Regards and best wishes,

Justin Clift


> Regards,
> Manoj


-- 
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
- Indira Gandhi




^ permalink  raw  reply  [nested|flat] 9+ messages in thread

* Re: [NOVICE] Database access problem : SOS
@ 2003-02-04 06:14 mjoseph@inautix.com
  0 siblings, 0 replies; 9+ messages in thread

From: mjoseph@inautix.com @ 2003-02-04 06:14 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-admin


Hi Tom,

>  Did you remember to start the cygipc daemon?

Yes I did. It was not that. There is something broken with cygipc or the
way I used it. ;-)

I did a complete uninstall and a re-install (using the user id 'postgres')
and I am able to create databases!

Thanks!

Now I have one more hurdle to cross. Can you help me with this?
I need to create a large object - a photograph and work with this.
The doc at
http://gborg.postgresql.org/project/psqlodbc/faq/faq.php?faq_id=52
suggests creating a custom type like this.
create type lo (
   internallength=4,
   externallength=10,
   input=int4in,
   output=int4out,
   default='',
   passedbyvalue
);

But I need to define the input & output functions (int4in and int4out). Can
someone give me a clue as to how these functions should be defined?

Regards,
Manoj






^ permalink  raw  reply  [nested|flat] 9+ messages in thread


end of thread, other threads:[~2003-02-07 14:51 UTC | newest]

Thread overview: 9+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-02-03 15:09 Database access problem : SOS mjoseph@inautix.com
2003-02-07 06:55 ` Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
2003-02-07 14:51   ` Tom Lane <tgl@sss.pgh.pa.us>
2003-02-03 15:18 Database access problem : SOS mjoseph@inautix.com
2003-02-03 15:45 ` Tom Lane <tgl@sss.pgh.pa.us>
2003-02-04 04:27 Re: Database access problem : SOS mjoseph@inautix.com
2003-02-04 04:35 ` Tom Lane <tgl@sss.pgh.pa.us>
2003-02-04 06:27 ` Justin Clift <justin@postgresql.org>
2003-02-04 06:14 Re: [NOVICE] Database access problem : SOS mjoseph@inautix.com

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox