Oh – monetdb version: This happened after an upgrade to the latest release. We upgraded Friday.

[lcj34@cbsudc01 monetdbFiles]$ monetdb version

MonetDB Database Server Toolkit v11.37.7 (Jun2020)

[lcj34@cbsudc01 monetdbFiles]$ 

 

And another db crashed without any extra info in the log other than it crashed.  I was able to delete that db and recreate it. 

 

From: Lynn Carol Johnson <lcj34@cornell.edu>
Date: Monday, June 29, 2020 at 10:49 AM
To: Communication channel for MonetDB users <users-list@monetdb.org>
Subject: Re: inadvertantly last schema

 

Jennie - What command can I run in monetdb to verify the tables are there?  It does look like nothing have been removed from the bat folders.

 

From: users-list <users-list-bounces+lcj34=cornell.edu@monetdb.org> on behalf of Ying Zhang <Y.Zhang@cwi.nl>
Reply-To: Communication channel for MonetDB users <users-list@monetdb.org>
Date: Monday, June 29, 2020 at 10:47 AM
To: Communication channel for MonetDB users <users-list@monetdb.org>
Subject: Re: inadvertantly last schema

 

Hai Lynn,

 

This is very strange.  Which MonetDB version are you using (i.e. mserver5 --version)?

 

I quickly tried your scenario in the Jun2020 version, but I don’t have this problem:

 

sql>schema test ;

syntax error, unexpected SCHEMA in: "schema"

sql>select s.name, t.name from tables t, schemas s where t.schema_id = s.id and s.name = 'test';

+------+------+

| name | name |

+======+======+

| test | t    |

+------+------+

1 tuple

sql>set schema test ;

operation successful

sql>\d

TABLE  test.t

 

Are you sure you’ve lost all data?  Because such error should never have affected your data.  Can you check if your data tables are still there, even if the “\d” command doesn’t return anything?

 

- Jennie




On 28 Jun 2020, at 18:07, Lynn Carol Johnson <lcj34@cornell.edu> wrote:

 

Hi all –

 

I have a monetdb instance with a lot of tables and a lot of data.  This data is organized into schemas.  While logging on today as the admistrator, I inadvertently typed:

 

sql>schema maizeFullGenome;

syntax error, unexpected SCHEMA in: "schema"

sql>

 

Instead of “set schema maizeFullGenome;”

 

This has apparently overwritten the data I had in my maizeFullGenome Schema.  Is there anyway to get this back besides finding an old copy of the db?  The following shows the schema as now gone:

 

sql>set schema maizeFullGenome;

operation successful

sql>\d

sql>

 

Yes, a very stupid mistake.

 

Lynn

_______________________________________________
users-list mailing list
users-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/users-list